Changeset 2498980
- Timestamp:
- 03/18/2021 08:09:57 PM (5 years ago)
- Location:
- unsproject/trunk
- Files:
-
- 4 edited
-
readme.md (modified) (1 diff)
-
src/SrpService.php (modified) (3 diffs)
-
src/Views/Srp/home.php (modified) (2 diffs)
-
unsproject.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
unsproject/trunk/readme.md
r2496270 r2498980 55 55 56 56 == Changelog == 57 58 = 2.0.1 (18 Mar 2021) 59 * Fix email issue for SRP 60 57 61 = 2.0.0 (15 Mar 2021) 58 62 * Add support for SRP -
unsproject/trunk/src/SrpService.php
r2496270 r2498980 111 111 */ 112 112 public function doRegisterUserIfNeeded($password, $passwordCheck = true){ 113 // $passwordCheck= false;113 $forceReset = false; 114 114 if (empty($this->srpCredentials)) { 115 115 if ( … … 126 126 $this->srpHelper->getSessionValue('v') 127 127 ); 128 $forceReset = true; 128 129 } else { 129 130 $this->srpHelper->setSessionValue('s', $this->srpCredentials['s']); … … 131 132 } 132 133 133 $this->deletePasswordFromUserTable(); 134 if($forceReset) { 135 $this->deletePasswordFromUserTable(); 136 } 134 137 } 135 138 -
unsproject/trunk/src/Views/Srp/home.php
r2496270 r2498980 15 15 $srpCredentials = $databaseService->getSrpCredentials(get_current_user_id()); 16 16 17 if ($srpCredentials !== null && isset($_REQUEST['activate_srp'])) { 18 $siteOptions->setValue('activate_srp', (int)$_REQUEST['activate_srp']); 19 $resetPasswordSrpValue = isset($_REQUEST['delete_password_srp']) 17 if ($srpCredentials !== null && isset($_REQUEST['srp_activate_action'])) { 18 $activate = (int) isset($_REQUEST['activate_srp']); 19 $siteOptions->setValue('activate_srp',$activate); 20 $resetPasswordSrpValue = $activate && isset($_REQUEST['delete_password_srp']) 20 21 ? (bool)$_REQUEST['delete_password_srp'] 21 22 : false; … … 117 118 118 119 <form method="POST"> 120 <input type="hidden" name="srp_activate_action" /> 119 121 <div class="custom-container top-round"> 120 122 <b class="custom-title">Enable SRP</b> -
unsproject/trunk/unsproject.php
r2496270 r2498980 8 8 Text Domain: uns-project 9 9 Domain Path: /i18n 10 Version: 2.0. 010 Version: 2.0.1 11 11 */ 12 12
Note: See TracChangeset
for help on using the changeset viewer.