Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ember-auth 7.x update + bundle update
- Loading branch information
1 parent
d2f4abc
commit 2836187
Showing
13 changed files
with
66 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
EmberAuthRailsDemo.LoginRoute = Em.Route.extend() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
EmberAuthRailsDemo.UsersRoute = Em.Route.extend | ||
EmberAuthRailsDemo.UsersRoute = Em.Route.extend EmberAuthRailsDemo.Auth.AuthRedirectable, | ||
model: -> | ||
if EmberAuthRailsDemo.Auth.get('signedIn') | ||
EmberAuthRailsDemo.User.find() | ||
EmberAuthRailsDemo.User.find() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
EmberAuthRailsDemo.UsersIndexRoute = Em.Route.extend | ||
EmberAuthRailsDemo.UsersIndexRoute = Em.Route.extend EmberAuthRailsDemo.Auth.AuthRedirectable, | ||
model: -> | ||
if EmberAuthRailsDemo.Auth.get('signedIn') | ||
EmberAuthRailsDemo.User.find() | ||
EmberAuthRailsDemo.User.find() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
EmberAuthRailsDemo.UsersShowRoute = Em.Route.extend | ||
EmberAuthRailsDemo.UsersShowRoute = Em.Route.extend EmberAuthRailsDemo.Auth.AuthRedirectable, | ||
serialize: (model) -> | ||
user_id: model.get('param') | ||
|
||
model: (params) -> | ||
if EmberAuthRailsDemo.Auth.get('signedIn') | ||
EmberAuthRailsDemo.User.find(params.user_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
form | ||
label Email | ||
Ember.TextField valueBinding=view.email | ||
= input type='text' value=view.email | ||
label Password | ||
Ember.TextField type='password' valueBinding=view.password | ||
= input type='password' value=view.password | ||
|
||
Ember.Checkbox checkedBinding=view.remember | ||
= input type='checkbox' checked=view.remember | ||
label Remember me | ||
|
||
button Sign In |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
| You need to sign in first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
if EmberAuthRailsDemo.Auth.signedIn | ||
ul: each controller | ||
li: linkTo users.show this | ||
else | ||
| You need to sign in first | ||
ul: each controller | ||
li: linkTo users.show this | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
if EmberAuthRailsDemo.Auth.signedIn | ||
h1 | ||
linkTo users.index | ||
| Back to users list | ||
else | ||
| You need to sign in first | ||
h1 | ||
linkTo users.index | ||
| Back to users list |