diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2020-06-16 09:17:32 +0300 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2020-06-16 09:17:52 +0300 |
commit | c9beef0bc2b1e18a77b7c2703056f55d01cf6f51 (patch) | |
tree | 728c636f633a5162ac27dd3cbe39b7f9316fe4f0 /index.php | |
parent | 609e41a05f2823869b2fe0def30f012431b76f0e (diff) |
Check if OAuth is enabled before including `oauth.inc` step file
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'; } |