diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-08-11 15:47:11 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-08-11 15:47:11 -0400 |
| commit | a09333e8b97a5f5c71331ce18777889510aed302 (patch) | |
| tree | 9f6b69e4996088ee13004c3bee6ea9d5f57e89db /www/templates/login.html | |
| parent | 68af457b04b26e26f0414b821dabe7359e18a0ad (diff) | |
API auth tied into ZM auth, enabled client to work in both auth and non-auth mode honoring ZM's auth system
Diffstat (limited to 'www/templates/login.html')
| -rw-r--r-- | www/templates/login.html | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/www/templates/login.html b/www/templates/login.html index 2178b491..a2aadd20 100644 --- a/www/templates/login.html +++ b/www/templates/login.html @@ -10,20 +10,28 @@ <i class="ion-android-home" style="font-size:150%"></i> ZoneMinder Settings </span> + + <div class="item"> + <ion-checkbox ng-model="auth.isUseAuth">use authentication</ion-checkbox> + + <div ng-if = "auth.isUseAuth" > + + <label class="item item-input item-floating-label" > + <span class="input-label">username</span> + <input autocapitalize="none" autocomplete="off" + autocorrect="off" type="text" + placeholder="username" + ng-model="loginData.username"> + </label> - <label class="item item-input item-floating-label" > - <span class="input-label">username</span> - <input autocapitalize="none" autocomplete="off" - autocorrect="off" type="text" - placeholder="username" - ng-model="loginData.username"> - </label> - - <label class="item item-input item-floating-label" > - <span class="input-label">password</span> - <input type="password" placeholder="password" - ng-model="loginData.password"> - </label> + <label class="item item-input item-floating-label" > + <span class="input-label">password</span> + <input type="password" placeholder="password" + ng-model="loginData.password"> + </label> + </div> + + </div> <label class="item item-input item-floating-label" > <span class="input-label">ZM portal url</span> <input autocapitalize="none" autocomplete="off" @@ -63,7 +71,7 @@ </label> </div> <button class="button button-block button-balanced icon ion-locked" - ng-click="save()"> Save + ng-click="save()"> Login </button> </ion-content> |
