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
|
@ -39,7 +39,8 @@ class AdminController < ApplicationController
|
|||
# and re-render the form again
|
||||
end
|
||||
else
|
||||
redirect_to :controller => 'wiki', :action => 'index'
|
||||
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