From 1e246a9256a3ef34be371bde77636b99ac7d9c45 Mon Sep 17 00:00:00 2001 From: Artem Daniliants Date: Mon, 24 May 2010 11:04:04 +0300 Subject: [PATCH] Added login functionality to users controller --- Server/application/controllers/users.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- 1.7.9.5