Fixed wrong setItem params (#2381)
This commit is contained in:
parent
9550730e99
commit
8e7f85f389
1 changed files with 1 additions and 1 deletions
|
|
@ -584,7 +584,7 @@ var Auth = {
|
||||||
url: "/api/v1/auth",
|
url: "/api/v1/auth",
|
||||||
data: {username: Auth.username, password: Auth.password}
|
data: {username: Auth.username, password: Auth.password}
|
||||||
}).then(function(data) {
|
}).then(function(data) {
|
||||||
localStorage.setItem("auth-token": data.token)
|
localStorage.setItem("auth-token", data.token)
|
||||||
m.route.set("/secret")
|
m.route.set("/secret")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue