Changeset 0a1fb54 for app/Http/Middleware/CheckCreatePassword.php
- Timestamp:
- 11/23/21 22:01:52 (3 years ago)
- Branches:
- master
- Children:
- dbc5976
- Parents:
- 4d73966
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Middleware/CheckCreatePassword.php
r4d73966 r0a1fb54 24 24 25 25 if($user->is_active) { 26 return redirect()->route("auth. loginShow");26 return redirect()->route("auth.showLogin"); 27 27 } 28 28 29 29 if(!$user->is_forgot_password) { 30 if(Carbon::now()->greaterThan($user->created_at->addMinutes(1 0))) {31 return redirect()->route("auth. loginShow");30 if(Carbon::now()->greaterThan($user->created_at->addMinutes(180))) { 31 return redirect()->route("auth.showLogin"); 32 32 } 33 33 }
Note:
See TracChangeset
for help on using the changeset viewer.