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
|
# and re-render the form again
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
redirect_to :controller => 'wiki', :action => 'index'
|
flash[:error] = "System Password incorrect. Try again."
|
||||||
|
redirect_to :controller => 'admin', :action => 'create_web'
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
# no form submitted -> render template
|
# no form submitted -> render template
|
||||||
|
|
Loading…
Reference in a new issue