You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
939 B

  1. - content_for :page_title do
  2. = t('auth.set_new_password')
  3. = simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
  4. = render 'shared/error_messages', object: resource
  5. - if !use_pam? || resource.encrypted_password.present?
  6. = f.input :reset_password_token, as: :hidden
  7. = f.input :password, autofocus: true, placeholder: t('simple_form.labels.defaults.new_password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.new_password'), :autocomplete => 'off' }
  8. = f.input :password_confirmation, placeholder: t('simple_form.labels.defaults.confirm_new_password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.confirm_new_password'), :autocomplete => 'off' }
  9. .actions
  10. = f.button :button, t('auth.set_new_password'), type: :submit
  11. - else
  12. = t('simple_form.labels.defaults.pam_account')
  13. .form-footer= render 'auth/shared/links'