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

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