small refactoring of login / logout

This commit is contained in:
Adina Parpalita
2017-11-10 15:39:15 +02:00
parent 382609df95
commit dab38d5a47
4 changed files with 19 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ export class PeopleApi extends RepoApi {
.catch(this.handleError);
}
createUser(username: string, password: string, details?: Person): Promise<any> {
createUser(username: string, password?: string, details?: Person): Promise<any> {
const person: Person = new Person(username, password, details);
const onSuccess = (response) => response;
const onError = (response) => {