Add dashboard, allow password resets when signed in

This commit is contained in:
2020-11-11 18:56:06 +01:00
parent 674b0a0ff5
commit a09741ba28
14 changed files with 86 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ en:
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
updated: "Your password has been changed successfully. You are now signed in."
updated: "Your password has been changed successfully."
updated_not_active: "Your password has been changed successfully."
registrations:
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
@@ -46,9 +46,9 @@ en:
updated: "Your account has been updated successfully."
updated_but_not_signed_in: "Your account has been updated successfully, but since your password was changed, you need to sign in again"
sessions:
signed_in: "Signed in successfully."
signed_out: "Signed out successfully."
already_signed_out: "Signed out successfully."
signed_in: ""
signed_out: ""
already_signed_out: ""
unlocks:
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."

View File

@@ -2,14 +2,17 @@ Rails.application.routes.draw do
devise_for :users
get 'settings', to: 'settings#index'
post 'settings_reset_password', to: 'settings#reset_password'
get 'welcome', to: 'welcome#index'
get 'check_your_email', to: 'welcome#check_your_email'
get 'ldap_users', to: 'ldap_users#index'
# Letter Opener (open "sent" emails in dev and staging)
if Rails.env.match(/staging|development/)
mount LetterOpenerWeb::Engine, at: "letter_opener"
end
root to: 'welcome#index'
root to: 'dashboard#index'
end