GUAC-961: Add guacFocus directive. Focus password field (and clear it) when login fails.

This commit is contained in:
Michael Jumper
2014-12-27 21:43:24 -08:00
parent bfe30ef981
commit 8b583452b5
3 changed files with 114 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ THE SOFTWARE.
<!-- Login fields (username + password) -->
<div class="login-fields">
<input ng-model="username" placeholder="{{'LOGIN.FIELD_PLACEHOLDER_USERNAME' | translate}}" type="text" name="username" autofocus="autofocus" autocorrect="off" autocapitalize="off" class="username"/>
<input ng-model="password" placeholder="{{'LOGIN.FIELD_PLACEHOLDER_PASSWORD' | translate}}" type="password" name="password" class="password"/>
<input ng-model="password" placeholder="{{'LOGIN.FIELD_PLACEHOLDER_PASSWORD' | translate}}" type="password" name="password" class="password" guac-focus="passwordFocused"/>
</div>
<!-- Submit button -->