diff --git a/module/common/model.php b/module/common/model.php index 40f7f5c0c9..d41c0772be 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1137,6 +1137,7 @@ class commonModel extends model $acls = $app->user->rights['acls']; $module = strtolower($module); $method = strtolower($method); + if(isset($rights[$module][$method])) { if(empty($acls['views'])) return true; diff --git a/module/my/control.php b/module/my/control.php index e532e89b17..2ddd668857 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -338,6 +338,7 @@ class my extends control $this->view->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->editProfile; $this->view->position[] = $this->lang->my->editProfile; $this->view->user = $this->user->getById($this->app->user->account); + $this->view->rand = $this->user->updateSessionRandom(); $this->display(); } diff --git a/module/my/js/editprofile.js b/module/my/js/editprofile.js new file mode 100644 index 0000000000..e585d83bcd --- /dev/null +++ b/module/my/js/editprofile.js @@ -0,0 +1,9 @@ +$(document).ready(function() +{ + $('#dataform').submit(function() + { + var password = $('input#verifyPassword').val(); + var rand = $('input#verifyRand').val(); + $('input#verifyPassword').val(md5(md5(password) + rand)); + }); +}); diff --git a/module/my/view/editprofile.html.php b/module/my/view/editprofile.html.php index b948b6c043..278a2853bd 100644 --- a/module/my/view/editprofile.html.php +++ b/module/my/view/editprofile.html.php @@ -12,11 +12,12 @@ ?> +