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:
Jacques Distler 2008-12-20 17:54:54 -06:00
parent 1f816af24b
commit 7828d79d35
2 changed files with 19 additions and 3 deletions

View file

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