Remove unused import and repeated code in monkey_island/cc/ui/src/services/AuthService.js

This commit is contained in:
Shreya 2021-05-03 19:32:08 +05:30
parent b5236d14c9
commit 09a37292b5
1 changed files with 1 additions and 6 deletions

View File

@ -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);
}
};
_register = (username, password) => {