Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b560732a
authored
Oct 24, 2018
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix moya-ng lint stuff
1 parent
b9ef974b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
code/moya-angular/src/app/modules/login/login.component.ts
code/moya-angular/src/app/modules/login/login.module.ts
code/moya-angular/src/app/shared/services/session-service.service.ts
code/moya-angular/src/app/modules/login/login.component.ts
View file @
b560732
...
...
@@ -12,8 +12,8 @@ import {SessionServiceService} from '../../shared/services/session-service.servi
})
export
class
LoginComponent
implements
OnInit
{
username
:
string
=
""
;
password
:
string
=
""
;
username
:
string
=
''
;
password
:
string
=
''
;
loginError
=
false
;
loginOk
=
false
;
...
...
code/moya-angular/src/app/modules/login/login.module.ts
View file @
b560732
...
...
@@ -5,7 +5,7 @@ import {LoginComponent} from './login.component';
import
{
MatButtonModule
,
MatFormFieldModule
,
MatInputModule
}
from
'@angular/material'
;
import
{
TranslateModule
}
from
'@ngx-translate/core'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
import
{
FormsModule
}
from
"@angular/forms"
;
import
{
FormsModule
}
from
'@angular/forms'
;
@
NgModule
({
imports
:
[
...
...
code/moya-angular/src/app/shared/services/session-service.service.ts
View file @
b560732
...
...
@@ -71,8 +71,8 @@ export class SessionServiceService {
public
doLogin
(
username
:
string
,
password
:
string
):
Observable
<
Object
>
{
let
params
=
new
HttpParams
();
params
=
params
.
set
(
"username"
,
username
);
params
=
params
.
set
(
"password"
,
password
);
params
=
params
.
set
(
'username'
,
username
);
params
=
params
.
set
(
'password'
,
password
);
const
apolloObservable
=
this
.
http
.
post
(
MOYA_REST_URL
+
'/user/auth'
,
params
,
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment