|
Wersja 752, 460 bytes
(wprowadzona przez marek, 17 years temu)
|
|
wiersz
|
| Line | |
|---|
| 1 | using System.Web.Security;
|
|---|
| 2 | using Wierszowki.Models.Interfaces;
|
|---|
| 3 |
|
|---|
| 4 | namespace Wierszowki.Models
|
|---|
| 5 | {
|
|---|
| 6 | public class FormsAuthenticationService : IFormsAuthentication
|
|---|
| 7 | {
|
|---|
| 8 | public void SignIn(string userName, bool createPersistentCookie)
|
|---|
| 9 | {
|
|---|
| 10 | FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
|
|---|
| 11 | }
|
|---|
| 12 | public void SignOut()
|
|---|
| 13 | {
|
|---|
| 14 | FormsAuthentication.SignOut();
|
|---|
| 15 | }
|
|---|
| 16 | }
|
|---|
| 17 | } |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.