Password Mismatch
When setting a password for a Web (on the "Edit Web" page), ensure that the password matches. Previously, the "verify" field was a placebo.
This commit is contained in:
parent
1f816af24b
commit
7828d79d35
2 changed files with 19 additions and 3 deletions
|
@ -53,6 +53,8 @@ class AdminController < ApplicationController
|
|||
# form submitted
|
||||
if wiki.authenticate(system_password)
|
||||
begin
|
||||
raise Instiki::ValidationError.new("Password for this Web didn't match") unless
|
||||
(params['password'].empty? or params['password'] == params['password_check'])
|
||||
wiki.edit_web(
|
||||
@web.address, params['address'], params['name'],
|
||||
params['markup'].intern,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue