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,7 +636,7 @@ class Users {
636 636
    * @param string $Username The username
637 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 640
     $ResetKey = Users::make_secret();
641 641
     G::$DB->query("
642 642
       UPDATE users_info
@@ -665,7 +665,7 @@ class Users {
665 665
    * @param int $ASN The ASN
666 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 669
     $AuthKey = Users::make_secret();
670 670
     G::$Cache->cache_value('new_location_'.$AuthKey, array('UserID'=>$UserID, 'ASN'=>$ASN), 3600*2);
671 671
     require(SERVER_ROOT . '/classes/templates.class.php');

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

@@ -140,7 +140,7 @@ if (isset($_REQUEST['act']) && $_REQUEST['act'] == 'recover') {
140 140
         if ($UserID) {
141 141
           // Email exists in the database
142 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 145
           $Sent = 1; // If $Sent is 1, recover_step1.php displays a success message
146 146
 
@@ -278,7 +278,7 @@ else {
278 278
                       FROM users_main
279 279
                       WHERE ID = $UserID");
280 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 282
                     require('newlocation.php');
283 283
                     die();
284 284
                   }

Loading…
Cancel
Save