|
@@ -63,12 +63,12 @@ class AuthenticationController < ApplicationController
|
63
|
63
|
user = User.new
|
64
|
64
|
user.person = person
|
65
|
65
|
user.email = person.email
|
66
|
|
- user.password = user.password_confirmation = SecureRandom::urlsafe_base64 32
|
|
66
|
+ user.password = user.password_confirmation = SecureRandom.urlsafe_base64 32
|
67
|
67
|
user.confirmed = false
|
68
|
68
|
user.save!
|
69
|
69
|
end
|
70
|
70
|
|
71
|
|
- AuthenticationMailer::password_confirm_email(user).deliver_now
|
|
71
|
+ AuthenticationMailer.password_confirm_email(user).deliver_now
|
72
|
72
|
flash_message(:success, I18n.t('authentication.emails.sent'))
|
73
|
73
|
redirect_to action: 'login'
|
74
|
74
|
end
|
|
@@ -84,7 +84,7 @@ class AuthenticationController < ApplicationController
|
84
|
84
|
redirect_to action: 'forgotten_password_form'
|
85
|
85
|
return
|
86
|
86
|
end
|
87
|
|
- AuthenticationMailer::password_reset_email(user).deliver_later
|
|
87
|
+ AuthenticationMailer.password_reset_email(user).deliver_later
|
88
|
88
|
flash_message(:success, I18n.t('authentication.emails.sent'))
|
89
|
89
|
redirect_to action: 'login'
|
90
|
90
|
end
|