mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	fix forget
This commit is contained in:
		| @@ -14,6 +14,7 @@ class ClientController extends Controller | ||||
|     { | ||||
|         $user = $request->user; | ||||
|         $server = []; | ||||
|         // account not expired and is not banned. | ||||
|         if ($user->expired_at > time() && !$user->banned) { | ||||
|             $servers = Server::where('show', 1) | ||||
|                 ->orderBy('name') | ||||
|   | ||||
| @@ -176,6 +176,9 @@ class AuthController extends Controller | ||||
|             abort(500, '邮箱验证码有误'); | ||||
|         } | ||||
|         $user = User::where('email', $request->input('email'))->first(); | ||||
|         if (!$user) { | ||||
|             abort(500, '该邮箱不存在系统中'); | ||||
|         } | ||||
|         $user->password = password_hash($request->input('password'), PASSWORD_DEFAULT); | ||||
|         $user->password_algo = NULL; | ||||
|         if (!$user->save()) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user