Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2020-06-16 09:17:32 +0300
committerThomas Bruederli <thomas@roundcube.net>2020-06-16 09:17:52 +0300
commitc9beef0bc2b1e18a77b7c2703056f55d01cf6f51 (patch)
tree728c636f633a5162ac27dd3cbe39b7f9316fe4f0 /index.php
parent609e41a05f2823869b2fe0def30f012431b76f0e (diff)
Check if OAuth is enabled before including `oauth.inc` step file
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index eb8757590..bec39cffc 100644
--- a/index.php
+++ b/index.php
@@ -189,7 +189,7 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') {
}
// handle oauth login requests
-else if ($RCMAIL->task == 'login' && $RCMAIL->action == 'oauth') {
+else if ($RCMAIL->task == 'login' && $RCMAIL->action == 'oauth' && $RCMAIL->oauth->is_enabled()) {
include INSTALL_PATH . 'program/steps/login/oauth.inc';
}