Home > Backend Development > PHP Tutorial > yii 确认密码有关问题

yii 确认密码有关问题

WBOY
Release: 2016-06-13 13:45:01
Original
831 people have browsed it

yii 确认密码问题
我在新建管理员页面新增了个确认密码功能
model里定义了变量 $confirm_pwd,增加rules一条规则
array('confirm_pwd','compare','compareAttribute'=>'pwd','message'=>'两次密码输入不同'),

在页面里密码不同时提示了错误,但是仍然可以提交??
我是不是还要加什么东西。。。。。

------解决方案--------------------
没有用过yii
帮忙顶一下。
------解决方案--------------------
每天回帖即可获得10分可用分!小技巧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template