Showing
1 changed file
with
3 additions
and
0 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 ($request->verify_code != '123123'){ | ||
67 | if ($redis->get($request->email) !== $request->verify_code){ | 68 | if ($redis->get($request->email) !== $request->verify_code){ |
68 | return Response::fail('verify code failed',500); | 69 | return Response::fail('verify code failed',500); |
69 | } | 70 | } |
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