From e59090d3b61ef9e358ccc445e19e8037403ed5bf Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 12 Aug 2017 07:56:02 +0200 Subject: [PATCH] Text and modal for password security. --- resources/lang/en_US/firefly.php | 1 + resources/views/auth/register.twig | 46 +------------------- resources/views/partials/password-modal.twig | 44 +++++++++++++++++++ resources/views/profile/change-password.twig | 5 ++- 4 files changed, 50 insertions(+), 46 deletions(-) create mode 100644 resources/views/partials/password-modal.twig diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index 0c5228923e..6346947288 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -416,6 +416,7 @@ return [ 'password_changed' => 'Password changed!', 'should_change' => 'The idea is to change your password.', 'invalid_password' => 'Invalid password!', + 'what_is_pw_security' => 'What is "verify password security"?', // attachments diff --git a/resources/views/auth/register.twig b/resources/views/auth/register.twig index cbe4fe03b0..ee9f6119d9 100644 --- a/resources/views/auth/register.twig +++ b/resources/views/auth/register.twig @@ -54,50 +54,6 @@ I forgot my password - - - + {% include 'partials.password-modal' %} {% endblock %} diff --git a/resources/views/partials/password-modal.twig b/resources/views/partials/password-modal.twig new file mode 100644 index 0000000000..16679e262e --- /dev/null +++ b/resources/views/partials/password-modal.twig @@ -0,0 +1,44 @@ + + \ No newline at end of file diff --git a/resources/views/profile/change-password.twig b/resources/views/profile/change-password.twig index 575c1e3722..4908d533f7 100644 --- a/resources/views/profile/change-password.twig +++ b/resources/views/profile/change-password.twig @@ -53,7 +53,9 @@ {{ ExpandedForm.checkbox('verify_password','1', false) }} - +

+ {{ 'what_is_pw_security'|_ }} +

+ {% include 'partials.password-modal' %} {% endblock %}