Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
frontend-auth
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
74273a5a
authored
2016-06-30 20:23:06 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
s/USERNAME/userName/ s/PASSWORD/password/
1 parent
7efb304d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/scripts/Auth.js
src/scripts/Auth.js
View file @
74273a5
...
...
@@ -123,7 +123,7 @@ define(function(require) {
ready
.
resolve
();
});
this
.
login
=
function
()
{
// TODO: possibly fetch
USERNAME/PASSWORD
from browser.localStorage
// TODO: possibly fetch
userName/password
from browser.localStorage
this
.
trigger
(
'provider:logged-in'
);
return
this
;
};
...
...
@@ -133,8 +133,8 @@ define(function(require) {
};
this
.
attachProviderData
=
function
(
data
)
{
_
.
extend
(
data
,
{
USERNAME
:
this
.
get
(
'USERNAME
'
),
PASSWORD
:
this
.
get
(
'PASSWORD
'
),
userName
:
this
.
get
(
'userName
'
),
password
:
this
.
get
(
'password
'
),
});
};
bindMethods
(
this
,
'login'
,
'logout'
,
'attachProviderData'
);
...
...
Please
register
or
sign in
to post a comment