summaryrefslogtreecommitdiffstats
path: root/controllers/UsersController.php
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-02 17:02:07 -0700
committerraylu <raylu@mixpanel.com>2011-07-02 17:02:07 -0700
commit05a2b26d9038752a40348a3f226e44710833c49b (patch)
tree9bc3e49ac2e84b33ca5ff6e44eb7e5f2c02d13bf /controllers/UsersController.php
parent83483a1826d1d05e2f9733746f35fef1939b8c0a (diff)
downloadotakuhub-05a2b26d9038752a40348a3f226e44710833c49b.tar.xz
pull in dev branch changes
not pulled: swiftmailer, gzip
Diffstat (limited to 'controllers/UsersController.php')
-rw-r--r--controllers/UsersController.php26
1 files changed, 5 insertions, 21 deletions
diff --git a/controllers/UsersController.php b/controllers/UsersController.php
index 3991738..d1b3193 100644
--- a/controllers/UsersController.php
+++ b/controllers/UsersController.php
@@ -11,7 +11,7 @@ use lithium\security\Auth;
use lithium\util\String;
use \MongoDate;
use li3_flash_message\extensions\storage\FlashMessage;
-use app\libraries\openID\LightOpenID;
+use lithium\template\helper\Html;
class UsersController extends \lithium\action\Controller {
public $secret = "marshmellows"; //I don't know why either?
@@ -223,21 +223,6 @@ class UsersController extends \lithium\action\Controller {
}
- public function openid()
- {
- if ($this->request->data)
- {
- if (!empty($this->request->query))
- {
- var_dump($this->request->query);
- }
- else
- {
- $openid = new LightOpenID;
- echo $openid->validates();
- }
- }
- }
public function signup()
{
@@ -287,15 +272,14 @@ class UsersController extends \lithium\action\Controller {
}
}
- public function login($location = null, $args = null)
- {
- //Put in a check to make sure the user has confirmed their account
- //The check should probably happen below after the auth check.
- /*
+ /*
If the user is valid, but not confirmed,
tell the user they haven't confirmed,
offer to resend the confirmation email or changed their email address.
*/
+ public function login($location = null, $args = null)
+ {
+
if (!empty($this->request->data)) {
$user = Auth::check('default', $this->request);
if ($user)