Mercurial > altnet-hispano
view Agendas/trunk/src/Agendas.Web/Services/FormsAuthenticationService.cs @ 174:3c70b0d8bd69
Ticket 159: Corrección temporal. Al obtener el nombre se remplazan los caracteres erróneos por los que corresponde.
author | juanjose.montesdeocaarbos |
---|---|
date | Mon, 08 Aug 2011 06:17:19 -0300 |
parents | 65f0b3d70c18 |
children |
line wrap: on
line source
using System; using System.Web.Security; namespace AltNetHispano.Agendas.Web.Services { public class FormsAuthenticationService : IFormsAuthenticationService { public void SignIn(string userName, bool createPersistentCookie) { if (String.IsNullOrEmpty(userName)) throw new ArgumentException("Value cannot be null or empty.", "userName"); FormsAuthentication.SetAuthCookie(userName, createPersistentCookie); } public void SignOut() { FormsAuthentication.SignOut(); } } }