Log password reset attempts
This commit is contained in:
parent
d02a3f595d
commit
9483882acf
1 changed files with 1 additions and 0 deletions
1
vedia.rb
1
vedia.rb
|
|
@ -149,6 +149,7 @@ get '/reset' do
|
||||||
end
|
end
|
||||||
|
|
||||||
post '/reset' do
|
post '/reset' do
|
||||||
|
logger.info params[:email]
|
||||||
@errors = []
|
@errors = []
|
||||||
if not params[:email] =~ URI::MailTo::EMAIL_REGEXP
|
if not params[:email] =~ URI::MailTo::EMAIL_REGEXP
|
||||||
@errors << OpenStruct.new(:attribute => :email, :type => :invalid)
|
@errors << OpenStruct.new(:attribute => :email, :type => :invalid)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue