Incorrect System Password on Create Web
Entering an incorrect password on the Create Web form should redirect back to the form, with a flash error. Fixed.
This commit is contained in:
parent
8373befa0b
commit
0c681c7775
|
@ -38,8 +38,9 @@ class AdminController < ApplicationController
|
|||
@error = e.message
|
||||
# and re-render the form again
|
||||
end
|
||||
else
|
||||
redirect_to :controller => 'wiki', :action => 'index'
|
||||
else
|
||||
flash[:error] = "System Password incorrect. Try again."
|
||||
redirect_to :controller => 'admin', :action => 'create_web'
|
||||
end
|
||||
else
|
||||
# no form submitted -> render template
|
||||
|
|
Loading…
Reference in a new issue