2019-07-07 11:18:12 +05:30
|
|
|
- page_title _('New Password')
|
|
|
|
- breadcrumb_title _('New Password')
|
|
|
|
|
2022-07-23 23:45:48 +05:30
|
|
|
%h1.page-title.gl-font-size-h-display= _('Set up new password')
|
2014-09-02 18:07:02 +05:30
|
|
|
%hr
|
2018-11-08 19:23:39 +05:30
|
|
|
= form_for @user, url: profile_password_path, method: :post do |f|
|
2014-09-02 18:07:02 +05:30
|
|
|
%p.slead
|
2019-07-07 11:18:12 +05:30
|
|
|
= _('Please set a new password before proceeding.')
|
2014-09-02 18:07:02 +05:30
|
|
|
%br
|
2019-07-07 11:18:12 +05:30
|
|
|
= _('After a successful password update you will be redirected to login screen.')
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2022-10-11 01:57:18 +05:30
|
|
|
= form_errors(@user)
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
- unless @user.password_automatically_set?
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-2.col-form-label
|
2021-11-18 22:05:49 +05:30
|
|
|
= f.label :password, _('Current password')
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-10
|
2021-11-18 22:05:49 +05:30
|
|
|
= f.password_field :password, required: true, autocomplete: 'current-password', class: 'form-control gl-form-input', data: { qa_selector: 'current_password_field' }
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-2.col-form-label
|
2021-11-18 22:05:49 +05:30
|
|
|
= f.label :new_password, _('New password')
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-10
|
2022-08-13 15:12:31 +05:30
|
|
|
= f.password_field :new_password, required: true, autocomplete: 'new-password', class: 'form-control gl-form-input js-password-complexity-validation', data: { qa_selector: 'new_password_field' }
|
|
|
|
= render_if_exists 'shared/password_requirements_list'
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :password_confirmation, _('Password confirmation')
|
2014-09-02 18:07:02 +05:30
|
|
|
.col-sm-10
|
2021-11-18 22:05:49 +05:30
|
|
|
= f.password_field :password_confirmation, required: true, autocomplete: 'new-password', class: 'form-control gl-form-input', data: { qa_selector: 'confirm_password_field' }
|
2014-09-02 18:07:02 +05:30
|
|
|
.form-actions
|
2021-06-08 01:23:25 +05:30
|
|
|
= f.submit _('Set new password'), class: 'gl-button btn btn-confirm', data: { qa_selector: 'set_new_password_button' }
|