OSDN Git Service

simple signup and login. Next, will modify note and worksapce api adding user info
[eos/zephyr.git] / client / app / components / login / login.html
index 900c206..ba2895f 100644 (file)
@@ -5,9 +5,15 @@
 <form class="form-signin" method="post" ng-submit="submit()" >
     <h2 class="text-center" class="form-signin-heading">Login</h2>
     <label class="sr-only">Username</label>
-    <input type="text" name="username" class="form-control" ng-model="username" placeholder="Username" required autofocus>
+    <input type="text" class="form-control" ng-model="email" placeholder="email" required autofocus>
     <label class="sr-only">Password</label>
-    <input type="password" name="password" class="form-control" ng-model="password" placeholder="Password" required>
+    <input type="password" name="password" class="form-control" ng-show="superuser" ng-disabled="!superuser" ng-model="password" placeholder="Password" required>
+    <div class="checkbox">
+        <label>
+            <input type="checkbox"
+                   ng-model="superuser">login as superuser
+        </label>
+    </div>
     <button class="btn btn-lg btn-primary btn-block" type="submit">Signin</button>
     <div class="pull-right">
         <p>or