Browse Source

camelCase -> snake_case in users.class

spaghetti 8 years ago
parent
commit
271afb5565
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      classes/users.class.php
  2. 2
    2
      sections/login/index.php

+ 2
- 2
classes/users.class.php View File

636
    * @param string $Username The username
636
    * @param string $Username The username
637
    * @param string $Email The email address
637
    * @param string $Email The email address
638
    */
638
    */
639
-  public static function resetPassword($UserID, $Username, $Email) {
639
+  public static function reset_password($UserID, $Username, $Email) {
640
     $ResetKey = Users::make_secret();
640
     $ResetKey = Users::make_secret();
641
     G::$DB->query("
641
     G::$DB->query("
642
       UPDATE users_info
642
       UPDATE users_info
665
    * @param int $ASN The ASN
665
    * @param int $ASN The ASN
666
    * @param string $Email The email address
666
    * @param string $Email The email address
667
    */
667
    */
668
-  public static function authLocation($UserID, $Username, $ASN, $Email) {
668
+  public static function auth_location($UserID, $Username, $ASN, $Email) {
669
     $AuthKey = Users::make_secret();
669
     $AuthKey = Users::make_secret();
670
     G::$Cache->cache_value('new_location_'.$AuthKey, array('UserID'=>$UserID, 'ASN'=>$ASN), 3600*2);
670
     G::$Cache->cache_value('new_location_'.$AuthKey, array('UserID'=>$UserID, 'ASN'=>$ASN), 3600*2);
671
     require(SERVER_ROOT . '/classes/templates.class.php');
671
     require(SERVER_ROOT . '/classes/templates.class.php');

+ 2
- 2
sections/login/index.php View File

140
         if ($UserID) {
140
         if ($UserID) {
141
           // Email exists in the database
141
           // Email exists in the database
142
           // Set ResetKey, send out email, and set $Sent to 1 to show success page
142
           // Set ResetKey, send out email, and set $Sent to 1 to show success page
143
-          Users::resetPassword($UserID, $Username, $Email);
143
+          Users::reset_password($UserID, $Username, $Email);
144
 
144
 
145
           $Sent = 1; // If $Sent is 1, recover_step1.php displays a success message
145
           $Sent = 1; // If $Sent is 1, recover_step1.php displays a success message
146
 
146
 
278
                       FROM users_main
278
                       FROM users_main
279
                       WHERE ID = $UserID");
279
                       WHERE ID = $UserID");
280
                     list($Username, $Email) = $DB->next_record();
280
                     list($Username, $Email) = $DB->next_record();
281
-                    Users::authLocation($UserID, $Username, $CurrentASN, DBCrypt::decrypt($Email));
281
+                    Users::auth_location($UserID, $Username, $CurrentASN, DBCrypt::decrypt($Email));
282
                     require('newlocation.php');
282
                     require('newlocation.php');
283
                     die();
283
                     die();
284
                   }
284
                   }

Loading…
Cancel
Save