]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/login.php
XMPP daemon updates including help, sub and subsub commands, plus subscribe/unsubcrib...
[quix0rs-gnu-social.git] / actions / login.php
index a60f3c65ce929675d0a965e82b24dd392a609e85..f183c1cd45c5ab7ff57f84440a0e2f321679fc9d 100644 (file)
@@ -21,6 +21,10 @@ if (!defined('LACONICA')) { exit(1); }
 
 class LoginAction extends Action {
 
+       function is_readonly() {
+               return true;
+       }
+
        function handle($args) {
                parent::handle($args);
                if (common_is_real_login()) {
@@ -35,7 +39,7 @@ class LoginAction extends Action {
        function check_login() {
                # XXX: form token in $_SESSION to prevent XSS
                # XXX: login throttle
-               $nickname = $this->arg('nickname');
+               $nickname = common_canonical_nickname($this->trimmed('nickname'));
                $password = $this->arg('password');
                if (common_check_user($nickname, $password)) {
                        # success!
@@ -138,4 +142,3 @@ class LoginAction extends Action {
                }
        }
 }
-#
\ No newline at end of file