Beispiel #1
0
 /// <summary>
 /// Constructs a new <see cref="PasswordResetController"/> object.
 /// </summary>
 /// <param name="authenticationService">The authentication service used by the server.</param>
 public PasswordResetController(MongoAuthenticationService authenticationService)
 {
     _authenticationService = authenticationService;
     _userAccountService    = authenticationService.UserAccountService;
 }
Beispiel #2
0
 /// <summary>
 /// Instantiates a new copy of <see cref="ChangeEmailController"/>.
 /// </summary>
 /// <param name="authSvc">Active instance of the authentication service against which to verify emails and accounts.</param>
 public ChangeEmailController(MongoAuthenticationService authSvc)
 {
     _authSvc            = authSvc;
     _userAccountService = authSvc.UserAccountService;
 }
Beispiel #3
0
 public HomeController(MongoAuthenticationService authSvc)
 {
     _userAccountService = authSvc.UserAccountService;
     _authService        = authSvc;
 }