-
Notifications
You must be signed in to change notification settings - Fork 969
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: passwordless SMS and expiry notice in code / link templates (#4104
) This feature allows Ory Kratos to use the SMS gateway for login and registration with code via SMS. Additionally, the default email and sms templates have been updated. We now also expose `ExpiresInMinutes` / `expires_in_minutes` in the templates, making it easier to remind the user how long the code or link is valid for. Closes #1570 Closes #3779
- Loading branch information
Showing
83 changed files
with
1,042 additions
and
326 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
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
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
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
6 changes: 3 additions & 3 deletions
6
courier/template/courier/builtin/templates/login_code/valid/email.body.gotmpl
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Hi, | ||
|
||
please login to your account by entering the following code: | ||
Login to your account with the following code: | ||
|
||
{{ .LoginCode }} | ||
|
||
It expires in {{ .ExpiresInMinutes }} minutes. |
6 changes: 3 additions & 3 deletions
6
courier/template/courier/builtin/templates/login_code/valid/email.body.plaintext.gotmpl
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Hi, | ||
|
||
please login to your account by entering the following code: | ||
Login to your account with the following code: | ||
|
||
{{ .LoginCode }} | ||
|
||
It expires in {{ .ExpiresInMinutes }} minutes. |
2 changes: 1 addition & 1 deletion
2
courier/template/courier/builtin/templates/login_code/valid/email.subject.gotmpl
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 |
---|---|---|
@@ -1 +1 @@ | ||
Login to your account | ||
Use code {{ .LoginCode }} to log in |
2 changes: 2 additions & 0 deletions
2
courier/template/courier/builtin/templates/login_code/valid/sms.body.gotmpl
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
Your login code is: {{ .LoginCode }} | ||
|
||
It expires in {{ .ExpiresInMinutes }} minutes. |
6 changes: 3 additions & 3 deletions
6
courier/template/courier/builtin/templates/recovery/valid/email.body.gotmpl
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Hi, | ||
|
||
please recover access to your account by clicking the following link: | ||
Recover access to your account by clicking the following link: | ||
|
||
<a href="{{ .RecoveryURL }}">{{ .RecoveryURL }}</a> | ||
|
||
If this was not you, do nothing. This link expires in {{ .ExpiresInMinutes }} minutes. |
7 changes: 4 additions & 3 deletions
7
courier/template/courier/builtin/templates/recovery/valid/email.body.plaintext.gotmpl
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Hi, | ||
|
||
please recover access to your account by clicking the following link: | ||
Recover access to your account by clicking the following link: | ||
|
||
{{ .RecoveryURL }} | ||
|
||
If this was not you, do nothing. This link expires in {{ .ExpiresInMinutes }} minutes. | ||
|
6 changes: 3 additions & 3 deletions
6
courier/template/courier/builtin/templates/recovery_code/valid/email.body.gotmpl
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Hi, | ||
|
||
please recover access to your account by entering the following code: | ||
Recover access to your account by entering the following code: | ||
|
||
{{ .RecoveryCode }} | ||
|
||
If this was not you, do nothing. This code expires in {{ .ExpiresInMinutes }} minutes. |
6 changes: 3 additions & 3 deletions
6
courier/template/courier/builtin/templates/recovery_code/valid/email.body.plaintext.gotmpl
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Hi, | ||
|
||
please recover access to your account by entering the following code: | ||
Recover access to your account by entering the following code: | ||
|
||
{{ .RecoveryCode }} | ||
|
||
If this was not you, do nothing. This code expires in {{ .ExpiresInMinutes }} minutes. |
2 changes: 1 addition & 1 deletion
2
courier/template/courier/builtin/templates/recovery_code/valid/email.subject.gotmpl
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 |
---|---|---|
@@ -1 +1 @@ | ||
Recover access to your account | ||
Use code {{ .RecoveryCode }} to recover access to your account |
6 changes: 3 additions & 3 deletions
6
courier/template/courier/builtin/templates/registration_code/valid/email.body.gotmpl
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Hi, | ||
|
||
please complete your account registration by entering the following code: | ||
Complete your account registration with the following code: | ||
|
||
{{ .RegistrationCode }} | ||
|
||
This code expires in {{ .ExpiresInMinutes }} minutes. |
6 changes: 3 additions & 3 deletions
6
...er/template/courier/builtin/templates/registration_code/valid/email.body.plaintext.gotmpl
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Hi, | ||
|
||
please complete your account registration by entering the following code: | ||
Complete your account registration with the following code: | ||
|
||
{{ .RegistrationCode }} | ||
|
||
This code expires in {{ .ExpiresInMinutes }} minutes. |
2 changes: 1 addition & 1 deletion
2
courier/template/courier/builtin/templates/registration_code/valid/email.subject.gotmpl
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 |
---|---|---|
@@ -1 +1 @@ | ||
Complete your account registration | ||
Use code {{ .RegistrationCode }} to complete your account registration |
3 changes: 3 additions & 0 deletions
3
courier/template/courier/builtin/templates/registration_code/valid/sms.body.gotmpl
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Your registration code is: {{ .RegistrationCode }} | ||
|
||
It expires in {{ .ExpiresInMinutes }} minutes. |
4 changes: 1 addition & 3 deletions
4
courier/template/courier/builtin/templates/verification/invalid/email.body.gotmpl
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
4 changes: 1 addition & 3 deletions
4
courier/template/courier/builtin/templates/verification/invalid/email.body.plaintext.gotmpl
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
4 changes: 3 additions & 1 deletion
4
courier/template/courier/builtin/templates/verification/valid/email.body.gotmpl
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
Hi, please verify your account by clicking the following link: | ||
Verify your account by opening the following link: | ||
|
||
<a href="{{ .VerificationURL }}">{{ .VerificationURL }}</a> | ||
|
||
If this was not you, do nothing. This link expires in {{ .ExpiresInMinutes }} minutes. |
3 changes: 2 additions & 1 deletion
3
courier/template/courier/builtin/templates/verification/valid/email.body.plaintext.gotmpl
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Hi, please verify your account by clicking the following link: | ||
Verify your account by opening the following link: | ||
|
||
{{ .VerificationURL }} | ||
|
||
If this was not you, do nothing. This link expires in {{ .ExpiresInMinutes }} minutes. |
6 changes: 3 additions & 3 deletions
6
courier/template/courier/builtin/templates/verification_code/valid/email.body.gotmpl
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Hi, | ||
|
||
please verify your account by entering the following code: | ||
Verify your account with the following code: | ||
|
||
{{ .VerificationCode }} | ||
|
||
or clicking the following link: | ||
|
||
<a href="{{ .VerificationURL }}">{{ .VerificationURL }}</a> | ||
|
||
If this was not you, do nothing. This code / link expires in {{ .ExpiresInMinutes }} minutes. |
6 changes: 3 additions & 3 deletions
6
...er/template/courier/builtin/templates/verification_code/valid/email.body.plaintext.gotmpl
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Hi, | ||
|
||
please verify your account by entering the following code: | ||
Verify your account with the following code: | ||
|
||
{{ .VerificationCode }} | ||
|
||
or clicking the following link: | ||
|
||
{{ .VerificationURL }} | ||
|
||
If this was not you, do nothing. This code / link expires in {{ .ExpiresInMinutes }} minutes. |
2 changes: 1 addition & 1 deletion
2
courier/template/courier/builtin/templates/verification_code/valid/email.subject.gotmpl
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 |
---|---|---|
@@ -1 +1 @@ | ||
Please verify your email address | ||
Use code {{ .VerificationCode }} to verify your account |
2 changes: 2 additions & 0 deletions
2
courier/template/courier/builtin/templates/verification_code/valid/sms.body.gotmpl
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
Your verification code is: {{ .VerificationCode }} | ||
|
||
If this was not you, do nothing. It expires in {{ .ExpiresInMinutes }} minutes. |
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
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
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
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
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
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
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
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.