forked from p15670423/monkey
Remove unused import and repeated code in monkey_island/cc/ui/src/services/AuthService.js
This commit is contained in:
parent
b5236d14c9
commit
09a37292b5
|
@ -1,4 +1,3 @@
|
|||
import {SHA3} from 'sha3';
|
||||
import decode from 'jwt-decode';
|
||||
|
||||
export default class AuthService {
|
||||
|
@ -42,11 +41,7 @@ export default class AuthService {
|
|||
};
|
||||
|
||||
register = (username, password) => {
|
||||
if (password !== '') {
|
||||
return this._register(username, password);
|
||||
} else {
|
||||
return this._register(username, password);
|
||||
}
|
||||
return this._register(username, password);
|
||||
};
|
||||
|
||||
_register = (username, password) => {
|
||||
|
|
Loading…
Reference in New Issue