Guest User

Untitled

a guest
Mar 13th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment