diff options
author | Joris | 2016-03-11 23:21:06 +0100 |
---|---|---|
committer | Joris | 2016-03-11 23:21:06 +0100 |
commit | 9d57e149fcb124a28813c56f83cf254eb92baa42 (patch) | |
tree | b796c4fdc738006c07e65e01f4845adafe064d2a /src/client/elm/Update/SignIn.elm | |
parent | 709d1cf587e92508ef73bca8e847cfa510c03069 (diff) |
Don't use persona anymore, use email token to sign in
Diffstat (limited to 'src/client/elm/Update/SignIn.elm')
-rw-r--r-- | src/client/elm/Update/SignIn.elm | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/client/elm/Update/SignIn.elm b/src/client/elm/Update/SignIn.elm index 94963c8..f55ce6d 100644 --- a/src/client/elm/Update/SignIn.elm +++ b/src/client/elm/Update/SignIn.elm @@ -2,16 +2,28 @@ module Update.SignIn ( updateSignIn ) where -import Model.Action.SignInAction exposing (..) import Model.View.SignInView exposing (..) +import Model.Action.SignInAction exposing (..) updateSignIn : SignInAction -> SignInView -> SignInView updateSignIn action signInView = case action of + UpdateLogin login -> + { signInView | + login = login + } WaitingServer -> - { signInView | waitingServer = True } + { signInView + | waitingServer = True + } + ValidLogin message -> + { signInView + | login = "" + , result = Just (Ok message) + , waitingServer = False + } ErrorLogin message -> { signInView - | error = Just message + | result = Just (Err message) , waitingServer = False } |