Skip to content

Commit

Permalink
feat: allow login through a one-time code sent via email
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond-u committed Feb 22, 2024
1 parent dc54532 commit 92c2014
Show file tree
Hide file tree
Showing 8 changed files with 420 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Nightly](https://github.com/raymond-u/lungo/compare/v0.2.3...HEAD)

### Added

- Allow login through a one-time code sent via email

### Changed

- Update JupyterLab to 4.1.2
Expand Down
8 changes: 8 additions & 0 deletions src/lungo_cli/resources/config/kratos/config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ selfservice:
methods:
code:
enabled: true
passwordless_enabled: true
password:
enabled: true
profile:
Expand All @@ -61,6 +62,13 @@ courier:
from_name: '{{ smtp.name }}'
local_name: '{{ network.hostname }}'
templates:
login_code:
valid:
email:
subject: 'file:///etc/kratos/email_templates/login_code/valid/email.subject.gotmpl'
body:
html: 'file:///etc/kratos/email_templates/login_code/valid/email.body.gotmpl'
plaintext: 'file:///etc/kratos/email_templates/login_code/valid/email.body.plaintext.gotmpl'
recovery_code:
valid:
email:
Expand Down
Loading

0 comments on commit 92c2014

Please sign in to comment.