Commit ff15a90e by bergquist

fix(login): fixes broken validation for login

parent 638a8a15
......@@ -17,7 +17,7 @@
</button>
</div>
<form name="loginForm" class="login-form gf-form-group" ng-if="allowUserPassLogin">
<form name="loginForm" class="login-form gf-form-group" ng-show="allowUserPassLogin">
<div class="gf-form" ng-if="loginMode">
<span class="gf-form-label width-7">User</span>
<input type="text" name="username" class="gf-form-input max-width-14" required ng-model='formModel.user' placeholder={{loginHint}}>
......@@ -40,7 +40,7 @@
</form>
<div ng-if="loginMode">
<div class="text-center login-divider" ng-if="oauthEnabled && allowUserPassLogin">
<div class="text-center login-divider" ng-show="oauthEnabled && allowUserPassLogin">
<div class="login-divider-line">
<span class="login-divider-text">
Or login with
......@@ -50,7 +50,7 @@
<div class="clearfix"></div>
<div class="login-oauth text-center" ng-if="oauthEnabled">
<div class="login-oauth text-center" ng-show="oauthEnabled">
<a class="btn btn-large btn-google" href="login/google" target="_self" ng-if="googleAuthEnabled">
<i class="fa fa-google"></i>
with Google
......@@ -64,7 +64,7 @@
<div class="clearfix"></div>
<div class="text-center password-recovery" ng-if="allowUserPassLogin">
<div class="text-center password-recovery" ng-show="allowUserPassLogin">
<div class="text-center">
<a href="user/password/send-reset-email">
Forgot your password?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment