25 references to ManageMessageId
IdentitySample.Mvc (25)
Controllers\ManageController.cs (25)
39
public async Task<IActionResult> Index(
ManageMessageId
? message = null)
42
message ==
ManageMessageId
.ChangePasswordSuccess ? "Your password has been changed."
43
: message ==
ManageMessageId
.SetPasswordSuccess ? "Your password has been set."
44
: message ==
ManageMessageId
.SetTwoFactorSuccess ? "Your two-factor authentication provider has been set."
45
: message ==
ManageMessageId
.Error ? "An error has occurred."
46
: message ==
ManageMessageId
.AddPhoneSuccess ? "Your phone number was added."
47
: message ==
ManageMessageId
.RemovePhoneSuccess ? "Your phone number was removed."
69
ManageMessageId
? message =
ManageMessageId
.Error;
77
message =
ManageMessageId
.RemoveLoginSuccess;
197
return RedirectToAction(nameof(Index), new { Message =
ManageMessageId
.AddPhoneSuccess });
218
return RedirectToAction(nameof(Index), new { Message =
ManageMessageId
.RemovePhoneSuccess });
221
return RedirectToAction(nameof(Index), new { Message =
ManageMessageId
.Error });
250
return RedirectToAction(nameof(Index), new { Message =
ManageMessageId
.ChangePasswordSuccess });
255
return RedirectToAction(nameof(Index), new { Message =
ManageMessageId
.Error });
284
return RedirectToAction(nameof(Index), new { Message =
ManageMessageId
.SetPasswordSuccess });
289
return RedirectToAction(nameof(Index), new { Message =
ManageMessageId
.Error });
294
public async Task<IActionResult> ManageLogins(
ManageMessageId
? message = null)
297
message ==
ManageMessageId
.RemoveLoginSuccess ? "The external login was removed."
298
: message ==
ManageMessageId
.AddLoginSuccess ? "The external login was added."
299
: message ==
ManageMessageId
.Error ? "An error has occurred."
342
return RedirectToAction(nameof(ManageLogins), new { Message =
ManageMessageId
.Error });
345
var
message = result.Succeeded ?
ManageMessageId
.AddLoginSuccess :
ManageMessageId
.Error;