-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump go modules,switch from local email client to go-pkgz/email
The local client started lagging behind go-pkgz/email feature-wise.
- Loading branch information
Showing
5 changed files
with
122 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,6 +210,26 @@ The API for this provider: | |
|
||
The provider acts like any other, i.e. will be registered as `/auth/email/login`. | ||
|
||
|
||
For email notify provider, please use `github.com/go-pkgz/auth/provider/sender` package: | ||
```go | ||
sndr := sender.NewEmailClient(sender.EmailParams{ | ||
Host: "email.hostname", | ||
Port: 567, | ||
SMTPUserName: "username", | ||
SMTPPassword: "pass", | ||
StartTLS: true, | ||
From: "[email protected]", | ||
Subject: "subject", | ||
ContentType: "text/html", | ||
Charset: "UTF-8", | ||
}, log.Default()) | ||
authenticator.AddVerifProvider("email", "template goes here", sndr) | ||
``` | ||
|
||
See [that documentation](https://github.com/go-pkgz/email#options) for full options list. | ||
|
||
### Telegram | ||
|
||
Telegram provider allows your users to log in with Telegram account. First, you will need to create your bot. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.