enhanced password checking behavior in remove_orphaned_pages;
extracted password error to application
This commit is contained in:
parent
8b21b8286f
commit
bc97b8d4f7
3 changed files with 14 additions and 8 deletions
|
@ -93,7 +93,8 @@ class WikiController < ApplicationController
|
|||
wiki.remove_orphaned_pages(@web_name)
|
||||
redirect_to :action => 'list'
|
||||
else
|
||||
redirect_show 'HomePage'
|
||||
flash[:error] = password_error(@params['system_password'])
|
||||
return_to_last_remembered
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue