mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-07 00:46:58 +03:00
Fixes security issue & Adds support to sent configuration via email (#83)
This commit is contained in:
parent
7edcd1b80c
commit
1711530dda
13 changed files with 335 additions and 76 deletions
10
emailer/interface.go
Normal file
10
emailer/interface.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package emailer
|
||||
|
||||
type Attachment struct {
|
||||
Name string
|
||||
Data []byte
|
||||
}
|
||||
|
||||
type Emailer interface {
|
||||
Send(toName string, to string, subject string, content string, attachments []Attachment) error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue