mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-08 09:06:49 +01:00
Do not auto-redirect on oauth login failures (#7812)
This commit is contained in:
@@ -297,6 +297,7 @@ class rcmail_oauth
|
||||
}
|
||||
catch (RequestException $e) {
|
||||
$this->last_error = "OAuth token request failed: " . $e->getMessage();
|
||||
$this->no_redirect = true;
|
||||
$formatter = new MessageFormatter();
|
||||
|
||||
rcube::raise_error([
|
||||
@@ -310,6 +311,7 @@ class rcmail_oauth
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$this->last_error = "OAuth token request failed: " . $e->getMessage();
|
||||
$this->no_redirect = true;
|
||||
|
||||
rcube::raise_error([
|
||||
'message' => $this->last_error,
|
||||
|
||||
Reference in New Issue
Block a user