mirror of https://gitee.com/karson/fastadmin.git
优化代码
parent
033af96e1a
commit
681558500c
|
|
@ -74,7 +74,7 @@ class Index extends Backend
|
||||||
$keeyloginhours = 24;
|
$keeyloginhours = 24;
|
||||||
if ($this->request->isPost()) {
|
if ($this->request->isPost()) {
|
||||||
$username = $this->request->post('username');
|
$username = $this->request->post('username');
|
||||||
$password = $this->request->post('password');
|
$password = $this->request->post('password', '', null);
|
||||||
$keeplogin = $this->request->post('keeplogin');
|
$keeplogin = $this->request->post('keeplogin');
|
||||||
$token = $this->request->post('__token__');
|
$token = $this->request->post('__token__');
|
||||||
$rule = [
|
$rule = [
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ class User extends Frontend
|
||||||
}
|
}
|
||||||
if ($this->request->isPost()) {
|
if ($this->request->isPost()) {
|
||||||
$username = $this->request->post('username');
|
$username = $this->request->post('username');
|
||||||
$password = $this->request->post('password');
|
$password = $this->request->post('password', '', null);
|
||||||
$email = $this->request->post('email');
|
$email = $this->request->post('email');
|
||||||
$mobile = $this->request->post('mobile', '');
|
$mobile = $this->request->post('mobile', '');
|
||||||
$captcha = $this->request->post('captcha');
|
$captcha = $this->request->post('captcha');
|
||||||
|
|
@ -149,7 +149,7 @@ class User extends Frontend
|
||||||
}
|
}
|
||||||
if ($this->request->isPost()) {
|
if ($this->request->isPost()) {
|
||||||
$account = $this->request->post('account');
|
$account = $this->request->post('account');
|
||||||
$password = $this->request->post('password');
|
$password = $this->request->post('password', '', null);
|
||||||
$keeplogin = (int)$this->request->post('keeplogin');
|
$keeplogin = (int)$this->request->post('keeplogin');
|
||||||
$token = $this->request->post('__token__');
|
$token = $this->request->post('__token__');
|
||||||
$rule = [
|
$rule = [
|
||||||
|
|
@ -222,9 +222,9 @@ class User extends Frontend
|
||||||
public function changepwd()
|
public function changepwd()
|
||||||
{
|
{
|
||||||
if ($this->request->isPost()) {
|
if ($this->request->isPost()) {
|
||||||
$oldpassword = $this->request->post("oldpassword");
|
$oldpassword = $this->request->post("oldpassword", '', null);
|
||||||
$newpassword = $this->request->post("newpassword");
|
$newpassword = $this->request->post("newpassword", '', null);
|
||||||
$renewpassword = $this->request->post("renewpassword");
|
$renewpassword = $this->request->post("renewpassword", '', null);
|
||||||
$token = $this->request->post('__token__');
|
$token = $this->request->post('__token__');
|
||||||
$rule = [
|
$rule = [
|
||||||
'oldpassword' => 'require|regex:\S{6,30}',
|
'oldpassword' => 'require|regex:\S{6,30}',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue