Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login(username, password) {
- return this.http
- .post(gb.apiUrlSignIn, { username: username, password: password })
- .map(res => res.json())
- .map((res) => {
- if (res.success) {
- localStorage.setItem('mytoken', res.auth_token);
- }
- return res.success;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement