diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-05-27 19:51:35 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-05-27 19:51:35 -0700 |
commit | c0cc7af4c210103a2ef6f3144e307bcd130a77d1 (patch) | |
tree | f076211bf9b9b74b323b3d1af39b86caf8bc48eb /samples/OAuthAuthorizationServer/Controllers/HomeController.cs | |
parent | 537a2a72b130ee50f9c01c6bcd9510875ee3f820 (diff) | |
download | DotNetOpenAuth-c0cc7af4c210103a2ef6f3144e307bcd130a77d1.zip DotNetOpenAuth-c0cc7af4c210103a2ef6f3144e307bcd130a77d1.tar.gz DotNetOpenAuth-c0cc7af4c210103a2ef6f3144e307bcd130a77d1.tar.bz2 |
Various fixes to the sample OAuth 2.0 Authorization Server sample.
Diffstat (limited to 'samples/OAuthAuthorizationServer/Controllers/HomeController.cs')
-rw-r--r-- | samples/OAuthAuthorizationServer/Controllers/HomeController.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/samples/OAuthAuthorizationServer/Controllers/HomeController.cs b/samples/OAuthAuthorizationServer/Controllers/HomeController.cs index 1887576..1311caa 100644 --- a/samples/OAuthAuthorizationServer/Controllers/HomeController.cs +++ b/samples/OAuthAuthorizationServer/Controllers/HomeController.cs @@ -4,7 +4,7 @@ using System.IO; using System.Linq; using System.Web.Mvc; - + using System.Web.Security; using OAuthAuthorizationServer.Code; [HandleError] @@ -39,6 +39,10 @@ }); dc.SubmitChanges(); + + // Force the user to log out because a new database warrants a new row in the users table, which we create + // when the user logs in. + FormsAuthentication.SignOut(); ViewData["Success"] = true; } catch (SqlException ex) { ViewData["Error"] = string.Join("<br>", ex.Errors.OfType<SqlError>().Select(er => er.Message).ToArray()); |