UserPassword
class UserPassword implements UserPasswordInterface
Password services related to User
Constants
DELAY |
Used to define the delay (2 hours) to allow password reset |
Properties
private ConfigServiceInterface | $configService | Stores ConfigServiceInterface | |
private EntityManagerInterface | $em | Stores EntityManagerInterface | |
private UserPasswordEncoderInterface | $passwordEncoder | Stores UserPasswordEncoderInterface | |
private Request | $request | Stores curent Request | |
private ServiceToolsInterface | $serviceTools | Stores ServiceToolsInterface | |
private UserEmailInterface | $userEmail | Stores UserEmailInterface |
Methods
__construct(ConfigServiceInterface $configService, EntityManagerInterface $em, UserPasswordEncoderInterface $passwordEncoder, RequestStack $requestStack, ServiceToolsInterface $serviceTools, UserEmailInterface $userEmail)
No description
change($user)
Changes the password
bool
delayExpired($user)
Checks if delay has expired
resetConfirm($user)
Confirms the reset of password
resetRequest(Request $request, $formData)
Request to reset the password
Details
at line 73
__construct(ConfigServiceInterface $configService, EntityManagerInterface $em, UserPasswordEncoderInterface $passwordEncoder, RequestStack $requestStack, ServiceToolsInterface $serviceTools, UserEmailInterface $userEmail)
at line 93
change($user)
Changes the password
at line 115
bool
delayExpired($user)
Checks if delay has expired
at line 147
resetConfirm($user)
Confirms the reset of password
at line 171
resetRequest(Request $request, $formData)
Request to reset the password