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:
Jacques Distler 2008-12-21 15:41:35 -06:00
parent 8373befa0b
commit 0c681c7775

View file

@ -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