This commit is contained in:
Matthew Ryan Dillon 2015-11-11 12:48:21 -07:00
parent 7497bacc4b
commit 2d5e2c4be7
4 changed files with 36 additions and 11 deletions

View file

@ -0,0 +1,22 @@
import Ember from 'ember';
const { Component } = Ember;
export default Component.extend({
// Actions
"on-save": null,
"on-cancel": null,
"on-update": null,
"add-characteristic": null,
"save-measurement": null,
"delete-measurement": null,
// Property mapping
propertiesList: ['identification', 'password'],
identification: null,
password: null,
updateField: function(property, value) {
this.set(property, value);
},
});

View file

@ -0,0 +1,10 @@
<form {{action "authenticate" on="submit"}}>
<h2>Log In</h2>
{{input value=identification type="text" placeholder="Email"}}
{{input value=password type="password" placeholder="Password"}}
{{input class="button-gray" type="submit" value="Log In"}}
</form>
<br>
<div>
{{link-to 'Forget your password?' 'users.requestlockouthelp'}}
</div>

View file

@ -1,4 +1,6 @@
import Ember from 'ember'; import Ember from 'ember';
import UnauthenticatedRouteMixin from 'ember-simple-auth/mixins/unauthenticated-route-mixin'; import UnauthenticatedRouteMixin from 'ember-simple-auth/mixins/unauthenticated-route-mixin';
export default Ember.Route.extend(UnauthenticatedRouteMixin, {}); const { Route } = Ember;
export default Route.extend(UnauthenticatedRouteMixin, {});

View file

@ -1,12 +1,3 @@
{{#x-application invalidateSession="invalidateSession"}} {{#x-application invalidateSession="invalidateSession"}}
<form {{action "authenticate" on="submit"}}> {{login/login-form}}
<h2>Log In</h2>
{{input value=identification type="text" placeholder="Email"}}
{{input value=password type="password" placeholder="Password"}}
{{input class="button-gray" type="submit" value="Log In"}}
</form>
<br>
<div>
{{link-to 'Forget your password?' 'users.requestlockouthelp'}}
</div>
{{/x-application}} {{/x-application}}