aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Update/SignIn.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/elm/Update/SignIn.elm')
-rw-r--r--src/client/elm/Update/SignIn.elm15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/elm/Update/SignIn.elm b/src/client/elm/Update/SignIn.elm
new file mode 100644
index 0000000..cabe4cb
--- /dev/null
+++ b/src/client/elm/Update/SignIn.elm
@@ -0,0 +1,15 @@
+module Update.SignIn
+ ( SignInAction(..)
+ , updateSignIn
+ ) where
+
+import Model.View.SignInView exposing (..)
+
+type SignInAction =
+ ErrorLogin String
+
+updateSignIn : SignInAction -> SignInView -> SignInView
+updateSignIn action signInView =
+ case action of
+ ErrorLogin message ->
+ { signInView | result <- Just (Err message) }