diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-06 18:49:58 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-06 18:49:58 +0400 |
commit | efdaea45576fb975f61c9ec4baa0421d4b832170 (patch) | |
tree | c5e1a3a4c0ba1332da4e9d82c7698fb490a8fc4b /lib/app.php | |
parent | 58a3a6a5730dc96d2382a86af848e234056d238d (diff) | |
parent | 964ff88f7168cf07965faa5b4e1b6d588298bd11 (diff) |
Merge pull request #1357 from owncloud/alternative-loging-master
add support for apps to register alternative login methods
Diffstat (limited to 'lib/app.php')
-rw-r--r-- | lib/app.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php index fa3e14ce4d2..3a4e21e8cd1 100644 --- a/lib/app.php +++ b/lib/app.php @@ -36,6 +36,7 @@ class OC_App{ static private $appTypes = array(); static private $loadedApps = array(); static private $checkedApps = array(); + static private $altLogin = array(); /** * @brief loads all apps @@ -568,6 +569,14 @@ class OC_App{ self::$personalForms[]= $app.'/'.$page.'.php'; } + public static function registerLogIn($entry) { + self::$altLogin[] = $entry; + } + + public static function getAlternativeLogIns() { + return self::$altLogin; + } + /** * @brief: get a list of all apps in the apps folder * @return array or app names (string IDs) |