Skip to content
Snippets Groups Projects
Commit e686b5d6 authored by L4168's avatar L4168
Browse files

removed nameObject

parent 6a614069
No related branches found
No related tags found
3 merge requests!59Development to master,!31Development,!28Group fix
......@@ -35,12 +35,6 @@ export class PersonEntity {
return { name, token };
}
// returns username and the id
nameObject() {
const { id, name } = this;
return { id, name };
}
async comparePassword(attempt: string) {
return await bcrypt.compareSync(attempt, this.password);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment