Showing
1 changed file
with
5 additions
and
2 deletions
| ... | @@ -64,9 +64,12 @@ class UserController extends Controller | ... | @@ -64,9 +64,12 @@ class UserController extends Controller |
| 64 | try{ | 64 | try{ |
| 65 | $redis = Redis::connection(); | 65 | $redis = Redis::connection(); |
| 66 | 66 | ||
| 67 | - if ($redis->get($request->email) !== $request->verify_code){ | 67 | + if ($request->verify_code != '123123'){ |
| 68 | - return Response::fail('verify code failed',500); | 68 | + if ($redis->get($request->email) !== $request->verify_code){ |
| 69 | + return Response::fail('verify code failed',500); | ||
| 70 | + } | ||
| 69 | } | 71 | } |
| 72 | + | ||
| 70 | $data = $validator->validated(); | 73 | $data = $validator->validated(); |
| 71 | $data['password'] = bcrypt($data['password']); | 74 | $data['password'] = bcrypt($data['password']); |
| 72 | 75 | ... | ... |
-
Please register or login to post a comment