|
@@ -52,12 +52,12 @@ class Profile extends Backend
|
|
$params = $this->request->post("row/a");
|
|
$params = $this->request->post("row/a");
|
|
$params = array_filter(array_intersect_key(
|
|
$params = array_filter(array_intersect_key(
|
|
$params,
|
|
$params,
|
|
- array_flip(array('email', 'nickname', 'password', 'avatar'))
|
|
|
|
|
|
+ array_flip(array('nickname', 'password', 'avatar'))
|
|
));
|
|
));
|
|
unset($v);
|
|
unset($v);
|
|
- if (!Validate::is($params['email'], "email")) {
|
|
|
|
- $this->error(__("Please input correct email"));
|
|
|
|
- }
|
|
|
|
|
|
+// if (!Validate::is($params['email'], "email")) {
|
|
|
|
+// $this->error(__("Please input correct email"));
|
|
|
|
+// }
|
|
if (isset($params['password'])) {
|
|
if (isset($params['password'])) {
|
|
if (!Validate::is($params['password'], "/^[\S]{6,30}$/")) {
|
|
if (!Validate::is($params['password'], "/^[\S]{6,30}$/")) {
|
|
$this->error(__("Please input correct password"));
|
|
$this->error(__("Please input correct password"));
|