From: Artem Daniliants Date: Mon, 24 May 2010 08:04:04 +0000 (+0300) Subject: Added login functionality to users controller X-Git-Url: https://vcs.maemo.org/git/?p=speedfreak;a=commitdiff_plain;h=1e246a9256a3ef34be371bde77636b99ac7d9c45 Added login functionality to users controller --- diff --git a/Server/application/controllers/users.php b/Server/application/controllers/users.php index ee20517..bcfd042 100644 --- a/Server/application/controllers/users.php +++ b/Server/application/controllers/users.php @@ -78,6 +78,20 @@ class Users_Controller extends Controller{ $view->render(true); } + /** + * Verify credentials + * + * @return string Returns string "OK" if login is successful and error otherwise + */ + public function login(){ + if (apiler::is_authorized()){ + print "OK"; + die; + } + else + apiler::not_authorized(); + } + /** * Check that supplied avatar is valid and store it