daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <label for="reenter_password" class="reenter_password{rm:hasError(property:'reenter_password',then:' text-danger')}">
  2.     Reenter Password*
  3. </label><br>
  4. <f:form.password name="reenter_password" id="reenter_password"/>
  5.    
  6. /**
  7.  * Complete New User Registeration
  8.  *
  9.  * @param User $newRegisteredUser
  10.  * @validate $newRegisteredUser RMRmRegistrationValidationValidatorNewRegisteredUser
  11.  * @validate $newRegisteredUser RMRmRegistrationValidationValidatorCompleteProfileUser
  12.  */
  13. public function completeNewRegisteredUserAction(User $newRegisteredUser)
  14. {
  15.     // Store Changes, Update and Persist
  16.     $newRegisteredUser->setPassword($this->saltThisPassword($newRegisteredUser->getPassword()));
  17.     $this->userRepository->update($newRegisteredUser);
  18.     $this->objectManager->get('TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager')->persistAll();
  19. }
  20.    
  21. TYPO3CMSCoreUtilityGeneralUtility::_POST()['tx_rmregistration_registration']['reenter_password']
  22.    
  23. // Compare Entered Passwords
  24. if ($user->getPassword() == $user->getReenteredPassword()) {
  25.     return TRUE;
  26. } else {
  27.     return FALSE;
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top