This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Validation | |
( InputState(Initial, HasError, OK) | |
, InputValue | |
, inputValue, getInputValue, setInputValue | |
, hasError, getError | |
, required, email, checked | |
, rules | |
) where | |
import List exposing(foldl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const EventEmitter = require("events"); | |
//----------------------------------------------- | |
// Service | |
//----------------------------------------------- | |
// service state | |
const STATE = Symbol(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// App_Start/Startup.Auth.cs | |
public partial class Startup | |
{ | |
public void ConfigureAuth(IAppBuilder app) | |
{ | |
var cookieOptions = new CookieAuthenticationOptions { | |
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, | |
LoginPath = new PathString("/account/sign-in"), | |
Provider = new CookieAuthenticationProvider { | |
OnValidateIdentity = OnValidateIdentity |