-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrated change password page to controller (#3257)
- Loading branch information
Showing
14 changed files
with
236 additions
and
186 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
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,88 @@ | ||
{% extends '@admin/index.twig' %} | ||
|
||
{% block content %} | ||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> | ||
<h1 class="h2"> | ||
<i aria-hidden="true" class="bi bi-lock"></i> | ||
{{ adminHeaderPasswordChange }} | ||
</h1> | ||
</div> | ||
|
||
{% if successMessage %} | ||
<p class="alert alert-success alert-dismissible fade show"> | ||
{{ successMessage }} | ||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> | ||
</p> | ||
{% endif %} | ||
{% if errorMessage %} | ||
<p class="alert alert-danger alert-dismissible fade show"> | ||
{{ errorMessage }} | ||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> | ||
</p> | ||
{% endif %} | ||
|
||
<div class="row mb-2"> | ||
<div class="col-6 offset-3"> | ||
<div class="card shadow mb-4"> | ||
<div class="card-header"> | ||
<h5 class="card-title"> | ||
{{ adminHeaderPasswordChange }} | ||
</h5> | ||
</div> | ||
<div class="card-body"> | ||
<form action="./password/update" method="post" accept-charset="utf-8"> | ||
<input type="hidden" id="pmf-csrf-token" name="pmf-csrf-token" value="{{ csrfToken }}"> | ||
|
||
<div class="row mb-4"> | ||
<label class="form-label small" for="faqpassword_old"> | ||
{{ adminMsgOldPassword }} | ||
</label> | ||
<div> | ||
<input type="password" autocomplete="off" name="faqpassword_old" id="faqpassword_old" | ||
class="form-control" | ||
required> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-4"> | ||
<label class="form-label small" for="faqpassword"> | ||
{{ adminMsgNewPassword }} | ||
</label> | ||
<div class="input-group"> | ||
<input type="password" autocomplete="off" name="faqpassword" id="faqpassword" class="form-control" | ||
data-pmf-toggle="faqpassword_toggle" required> | ||
<span class="input-group-text" id="faqpassword_toggle"> | ||
<i class="bi bi-eye-slash" id="faqpassword_toggle_icon"></i> | ||
</span> | ||
</div> | ||
<div class=""> | ||
<div class="progress mt-2 w-100"> | ||
<div class="progress-bar progress-bar-striped" id="strength"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-4"> | ||
<label class="form-label small" for="faqpassword_confirm"> | ||
{{ adminMsgNewPasswordConfirm }} | ||
</label> | ||
<div> | ||
<input type="password" autocomplete="off" name="faqpassword_confirm" id="faqpassword_confirm" | ||
class="form-control" required> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="text-end"> | ||
<button class="btn btn-primary" type="submit"> | ||
{{ adminMsgButtonNewPassword }} | ||
</button> | ||
</div> | ||
</div> | ||
|
||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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.