diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-10 07:49:13 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-10 07:49:13 -0800 |
commit | 6e68095c020f88f6c61b3a76f1fa885ead1e7f15 (patch) | |
tree | 83bfc6d5ff5cddf7144cc85de5b4df755753b724 /samples/OpenIdProviderMvc/Controllers | |
parent | 945b058634609684e72d6ea233d4643dd2f17a32 (diff) | |
parent | 351ecb6678ec3cbd469bfa8076dfdc7aad83e987 (diff) | |
download | DotNetOpenAuth-6e68095c020f88f6c61b3a76f1fa885ead1e7f15.zip DotNetOpenAuth-6e68095c020f88f6c61b3a76f1fa885ead1e7f15.tar.gz DotNetOpenAuth-6e68095c020f88f6c61b3a76f1fa885ead1e7f15.tar.bz2 |
Merge branch 'stylecopUpgrade'
Diffstat (limited to 'samples/OpenIdProviderMvc/Controllers')
-rw-r--r-- | samples/OpenIdProviderMvc/Controllers/AccountController.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/samples/OpenIdProviderMvc/Controllers/AccountController.cs b/samples/OpenIdProviderMvc/Controllers/AccountController.cs index cbc6561..7cb4b62 100644 --- a/samples/OpenIdProviderMvc/Controllers/AccountController.cs +++ b/samples/OpenIdProviderMvc/Controllers/AccountController.cs @@ -55,7 +55,7 @@ } this.FormsAuth.SignIn(userName, rememberMe); - if (!String.IsNullOrEmpty(returnUrl)) { + if (!string.IsNullOrEmpty(returnUrl)) { return Redirect(returnUrl); } else { return RedirectToAction("Index", "Home"); @@ -173,16 +173,16 @@ } private bool ValidateChangePassword(string currentPassword, string newPassword, string confirmPassword) { - if (String.IsNullOrEmpty(currentPassword)) { + if (string.IsNullOrEmpty(currentPassword)) { ModelState.AddModelError("currentPassword", "You must specify a current password."); } if (newPassword == null || newPassword.Length < this.MembershipService.MinPasswordLength) { ModelState.AddModelError( "newPassword", - String.Format(CultureInfo.CurrentCulture, "You must specify a new password of {0} or more characters.", this.MembershipService.MinPasswordLength)); + string.Format(CultureInfo.CurrentCulture, "You must specify a new password of {0} or more characters.", this.MembershipService.MinPasswordLength)); } - if (!String.Equals(newPassword, confirmPassword, StringComparison.Ordinal)) { + if (!string.Equals(newPassword, confirmPassword, StringComparison.Ordinal)) { ModelState.AddModelError("_FORM", "The new password and confirmation password do not match."); } @@ -190,10 +190,10 @@ } private bool ValidateLogOn(string userName, string password) { - if (String.IsNullOrEmpty(userName)) { + if (string.IsNullOrEmpty(userName)) { ModelState.AddModelError("username", "You must specify a username."); } - if (String.IsNullOrEmpty(password)) { + if (string.IsNullOrEmpty(password)) { ModelState.AddModelError("password", "You must specify a password."); } if (!this.MembershipService.ValidateUser(userName, password)) { @@ -204,18 +204,18 @@ } private bool ValidateRegistration(string userName, string email, string password, string confirmPassword) { - if (String.IsNullOrEmpty(userName)) { + if (string.IsNullOrEmpty(userName)) { ModelState.AddModelError("username", "You must specify a username."); } - if (String.IsNullOrEmpty(email)) { + if (string.IsNullOrEmpty(email)) { ModelState.AddModelError("email", "You must specify an email address."); } if (password == null || password.Length < this.MembershipService.MinPasswordLength) { ModelState.AddModelError( "password", - String.Format(CultureInfo.CurrentCulture, "You must specify a password of {0} or more characters.", this.MembershipService.MinPasswordLength)); + string.Format(CultureInfo.CurrentCulture, "You must specify a password of {0} or more characters.", this.MembershipService.MinPasswordLength)); } - if (!String.Equals(password, confirmPassword, StringComparison.Ordinal)) { + if (!string.Equals(password, confirmPassword, StringComparison.Ordinal)) { ModelState.AddModelError("_FORM", "The new password and confirmation password do not match."); } return ModelState.IsValid; |