]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/login.php
add w3dtf date to rss 1.0 items
[quix0rs-gnu-social.git] / actions / login.php
index 89d06ee4d9a30c551bc11384c79b6061f48073e0..9f9c473b513d3436316f8b0dd9035f405ca47fda 100644 (file)
@@ -1,18 +1,18 @@
 <?php
-/* 
+/*
  * Laconica - a distributed open-source microblogging tool
  * Copyright (C) 2008, Controlez-Vous, Inc.
- * 
+ *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Affero General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Affero General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
@@ -20,7 +20,7 @@
 if (!defined('LACONICA')) { exit(1); }
 
 class LoginAction extends Action {
-       
+
        function handle($args) {
                parent::handle($args);
                if (common_logged_in()) {
@@ -43,7 +43,7 @@ class LoginAction extends Action {
                                common_server_error(_t('Error setting user.'));
                                return;
                        }
-                       # success!                      
+                       # success!
                        common_redirect(common_local_url('all',
                                                                                         array('nickname' =>
                                                                                                   $nickname)));
@@ -51,9 +51,9 @@ class LoginAction extends Action {
                        $this->show_form(_t('Incorrect username or password.'));
                }
        }
-       
+
        function show_form($error=NULL) {
-               
+
                common_show_header(_t('Login'));
                if (!is_null($error)) {
                        common_element('div', array('class' => 'error'), $msg);
@@ -63,10 +63,7 @@ class LoginAction extends Action {
                                                                                   'action' => common_local_url('login')));
                common_input('nickname', _t('Nickname'));
                common_password('password', _t('Password'));
-               common_element('input', array('name' => 'submit',
-                                                                         'type' => 'submit',
-                                                                         'id' => 'submit',
-                                                                         'value' => _t('Login')));
+               common_submit('submit', _t('Login'));
                common_element_end('form');
                common_show_footer();
        }