mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-25 08:50:50 +02:00
Move unaffected code outside of try/catch statement
This commit is contained in:
@@ -1168,6 +1168,10 @@ final class Auth extends UserManager {
|
||||
\time()
|
||||
]
|
||||
);
|
||||
}
|
||||
catch (Error $e) {
|
||||
throw new DatabaseError($e->getMessage());
|
||||
}
|
||||
|
||||
if (!empty($requests)) {
|
||||
return $requests;
|
||||
@@ -1176,10 +1180,6 @@ final class Auth extends UserManager {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
catch (Error $e) {
|
||||
throw new DatabaseError($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new password reset request
|
||||
|
Reference in New Issue
Block a user