2014-08-12 10:10:52 -04:00
|
|
|
<div ng-controller="LoginController" class="login">
|
2014-08-15 18:24:42 -04:00
|
|
|
<div id="page">
|
|
|
|
<div id="wrapper">
|
2014-08-12 10:10:52 -04:00
|
|
|
|
|
|
|
{{ feedback }}
|
|
|
|
|
|
|
|
<h3>Register for an account:</h3>
|
|
|
|
<form novalidate>
|
|
|
|
<input id="desired_user_name" size="70" type="text" auto-focus ng-model="account.desired_user_name" placeholder="User name (ex:bob)"/>
|
|
|
|
<br/>
|
|
|
|
<input id="pwd1" size="70" type="password" auto-focus ng-model="account.pwd1" placeholder="Type a password"/>
|
|
|
|
<br/>
|
|
|
|
<input id="pwd2" size="70" type="password" auto-focus ng-model="account.pwd2" placeholder="Re-type your password"/>
|
|
|
|
<br/>
|
|
|
|
<!-- New user registration -->
|
|
|
|
<div>
|
|
|
|
<br/>
|
2014-08-16 22:47:58 -04:00
|
|
|
<button ng-click="register()" ng-disabled="!account.desired_user_name || !account.homeserver || !account.pwd1 || !account.pwd2 || account.pwd1 !== account.pwd2">Register</button>
|
2014-08-12 10:10:52 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<h3>Got an account?</h3>
|
|
|
|
<form novalidate>
|
|
|
|
<!-- Login with an registered user -->
|
2014-08-14 10:36:40 -04:00
|
|
|
<div>{{ login_error_msg }} </div>
|
2014-08-12 10:10:52 -04:00
|
|
|
<div>
|
2014-08-14 11:40:15 -04:00
|
|
|
<input id="user_id" size="70" type="text" auto-focus ng-model="account.user_id" placeholder="User ID (ex:@bob:localhost or bob)"/>
|
2014-08-12 10:10:52 -04:00
|
|
|
<br />
|
|
|
|
<input id="password" size="70" type="password" ng-model="account.password" placeholder="Password"/><br />
|
|
|
|
<br/>
|
2014-08-16 22:47:58 -04:00
|
|
|
<button ng-click="login()" ng-disabled="!account.user_id || !account.password || !account.homeserver">Login</button>
|
2014-08-12 10:10:52 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<h3>Servers</h3>
|
|
|
|
<form novalidate>
|
|
|
|
<div>
|
|
|
|
Home Server:
|
|
|
|
<input id="homeserver" size="57" type="text" ng-model="account.homeserver" placeholder="Home server URL (ex: http://localhost:8080)"/>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div>
|
|
|
|
Identity Server:
|
|
|
|
<input id="identityServer" size="56" type="text" ng-model="account.identityServer" placeholder="Identity server URL (ex: http://localhost:8090)"/>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
</form>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2014-08-13 21:13:14 -04:00
|
|
|
</div>
|
2014-08-12 10:10:52 -04:00
|
|
|
</div>
|
|
|
|
</div>
|