| @@ 88-111 (lines=24) @@ | ||
| 85 | * @param AccessTokenMapper $accessTokenMapper |
|
| 86 | * @param ICrypto $crypto |
|
| 87 | */ |
|
| 88 | public function __construct($appName, |
|
| 89 | IRequest $request, |
|
| 90 | IUserSession $userSession, |
|
| 91 | IL10N $l10n, |
|
| 92 | Defaults $defaults, |
|
| 93 | ISession $session, |
|
| 94 | IProvider $tokenProvider, |
|
| 95 | ISecureRandom $random, |
|
| 96 | IURLGenerator $urlGenerator, |
|
| 97 | ClientMapper $clientMapper, |
|
| 98 | AccessTokenMapper $accessTokenMapper, |
|
| 99 | ICrypto $crypto) { |
|
| 100 | parent::__construct($appName, $request); |
|
| 101 | $this->userSession = $userSession; |
|
| 102 | $this->l10n = $l10n; |
|
| 103 | $this->defaults = $defaults; |
|
| 104 | $this->session = $session; |
|
| 105 | $this->tokenProvider = $tokenProvider; |
|
| 106 | $this->random = $random; |
|
| 107 | $this->urlGenerator = $urlGenerator; |
|
| 108 | $this->clientMapper = $clientMapper; |
|
| 109 | $this->accessTokenMapper = $accessTokenMapper; |
|
| 110 | $this->crypto = $crypto; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * @return string |
|
| @@ 93-114 (lines=22) @@ | ||
| 90 | * @param Defaults $defaults |
|
| 91 | * @param Throttler $throttler |
|
| 92 | */ |
|
| 93 | public function __construct($appName, |
|
| 94 | IRequest $request, |
|
| 95 | IUserManager $userManager, |
|
| 96 | IConfig $config, |
|
| 97 | ISession $session, |
|
| 98 | IUserSession $userSession, |
|
| 99 | IURLGenerator $urlGenerator, |
|
| 100 | ILogger $logger, |
|
| 101 | Manager $twoFactorManager, |
|
| 102 | Defaults $defaults, |
|
| 103 | Throttler $throttler) { |
|
| 104 | parent::__construct($appName, $request); |
|
| 105 | $this->userManager = $userManager; |
|
| 106 | $this->config = $config; |
|
| 107 | $this->session = $session; |
|
| 108 | $this->userSession = $userSession; |
|
| 109 | $this->urlGenerator = $urlGenerator; |
|
| 110 | $this->logger = $logger; |
|
| 111 | $this->twoFactorManager = $twoFactorManager; |
|
| 112 | $this->defaults = $defaults; |
|
| 113 | $this->throttler = $throttler; |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * @NoAdminRequired |
|
| @@ 98-123 (lines=26) @@ | ||
| 95 | * @param ITimeFactory $timeFactory |
|
| 96 | * @param ICrypto $crypto |
|
| 97 | */ |
|
| 98 | public function __construct($appName, |
|
| 99 | IRequest $request, |
|
| 100 | IURLGenerator $urlGenerator, |
|
| 101 | IUserManager $userManager, |
|
| 102 | Defaults $defaults, |
|
| 103 | IL10N $l10n, |
|
| 104 | IConfig $config, |
|
| 105 | ISecureRandom $secureRandom, |
|
| 106 | $defaultMailAddress, |
|
| 107 | IManager $encryptionManager, |
|
| 108 | IMailer $mailer, |
|
| 109 | ITimeFactory $timeFactory, |
|
| 110 | ICrypto $crypto) { |
|
| 111 | parent::__construct($appName, $request); |
|
| 112 | $this->urlGenerator = $urlGenerator; |
|
| 113 | $this->userManager = $userManager; |
|
| 114 | $this->defaults = $defaults; |
|
| 115 | $this->l10n = $l10n; |
|
| 116 | $this->secureRandom = $secureRandom; |
|
| 117 | $this->from = $defaultMailAddress; |
|
| 118 | $this->encryptionManager = $encryptionManager; |
|
| 119 | $this->config = $config; |
|
| 120 | $this->mailer = $mailer; |
|
| 121 | $this->timeFactory = $timeFactory; |
|
| 122 | $this->crypto = $crypto; |
|
| 123 | } |
|
| 124 | ||
| 125 | /** |
|
| 126 | * Someone wants to reset their password: |
|