Skip to content

Commit

Permalink
fix: add and document recovery to quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 3, 2020
1 parent 81903a5 commit c229c54
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/quickstart/kratos/email-password/.kratos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ selfservice:

settings:
ui_url: http://127.0.0.1:4455/settings
privileged_session_max_age: 1m
privileged_session_max_age: 15m

recovery:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
},
"verification": {
"via": "email"
},
"recovery": {
"via": "email"
}
}
}
Expand Down
48 changes: 47 additions & 1 deletion docs/docs/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ merely a guide to get you set up with some examples.
src="https://www.youtube.com/embed/5t1Zr_zJc7E"
frameborder="0"
allowfullscreen
></iframe>
/>

## Use Case: Application Login and Registration

Expand Down Expand Up @@ -530,6 +530,52 @@ response):
To re-request the verification email, fill out the form at
[127.0.0.1:4455/verify](http://127.0.0.1:4455/verify).

To learn more about verification recovery, head over to the
[Email and Phone Verification and Account Activation Documentation](self-service/flows/verify-email-account-activation.mdx).

### Account Recovery

The quickstart has account recovery enabled. To recover an account, log out and
click on "Recover account":

<p>
<img
alt="Click on 'recover account'"
src={useBaseUrl('img/docs/quickstart-recover-i.png')}
/>
</p>

The next screen shows a HTML form where you enter your email address:

<p>
<img
alt="Enter your email address"
src={useBaseUrl('img/docs/quickstart-recover-ii.png')}
/>
</p>

Hit "submit" and check the emails for the account recovery message:

<p>
<img
alt="Check your email for the password reset email"
src={useBaseUrl('img/docs/quickstart-recover-iii.png')}
/>
</p>

Click the link, and change your password:

<p>
<img
alt="Change your password"
src={useBaseUrl('img/docs/quickstart-recover-iv.png')}
/>
</p>

You are now able to sign in with the new password. To learn more about account
recovery, head over to the
[Account Recovery Documentation](self-service/flows/account-recovery.mdx).

#### Configuration

You can find all configuration files used for this quickstart guide in
Expand Down
Binary file added docs/static/img/docs/quickstart-recover-i.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/docs/quickstart-recover-ii.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/docs/quickstart-recover-iii.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/docs/quickstart-recover-iv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c229c54

Please sign in to comment.