From 420540fc9444ec3273338ea7663e7903e9933414 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 15 May 2014 20:39:49 -0700 Subject: [PATCH] login app --- app/login.apd | 3 +++ include/apps.php | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 app/login.apd diff --git a/app/login.apd b/app/login.apd new file mode 100644 index 000000000..8d2c688b5 --- /dev/null +++ b/app/login.apd @@ -0,0 +1,3 @@ +url: $baseurl/login +requires: nologin +name: Login \ No newline at end of file diff --git a/include/apps.php b/include/apps.php index 80fc0299b..733cb30cf 100644 --- a/include/apps.php +++ b/include/apps.php @@ -70,6 +70,10 @@ function parse_app_description($f) { if(array_key_exists('requires',$ret)) { $require = trim(strtolower($ret['requires'])); switch($require) { + case 'nologin': + if(local_user()) + unset($ret); + break; case 'local_user': if(! local_user()) unset($ret);