Skip to content

Commit

Permalink
[doc][auth] add recovery screens
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheron committed Feb 21, 2022
1 parent 81f091b commit d2b3382
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Binary file added docs/_static/images/auth/recoveryForm.png
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/images/auth/recoveryInit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/scaffolding/auth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ Account recovery
account recovery is used to reset the account password. |br|
A password reset email is sent, to an email address corresponding to an active account.

.. image:: /_static/images/auth/recoveryInit.png

.. code-block:: php
:linenos:
:caption: app/controllers/PersoAuthController.php
Expand Down Expand Up @@ -357,6 +359,8 @@ A password reset email is sent, to an email address corresponding to an active a
}
}
.. image:: /_static/images/auth/recoveryForm.png

.. note::
By default, the link can only be used on the same machine, within a predetermined period of time (which can be modified by overriding the ``accountRecoveryDuration`` method).

Expand Down
2 changes: 1 addition & 1 deletion src/Ubiquity/core/views/auth/recovery.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h4 class="ui header dividing">Account recovery (password reset)</h4>
<div class="field disabled">
<label for="email">Email</label>
<div class="ui input">
<input id="email" name="email" type="text" value="{{ email }}" disabled="disabled">
<input id="email" name="email" type="text" value="{{ email }}" readonly="">
</div>
</div>
{% endblock %}
Expand Down

0 comments on commit d2b3382

Please sign in to comment.