mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: User email verification after signing-up.
This commit is contained in:
@@ -4,6 +4,12 @@ import SystemModel from '@/system/models/SystemModel';
|
||||
import SoftDeleteQueryBuilder from '@/collection/SoftDeleteQueryBuilder';
|
||||
|
||||
export default class SystemUser extends SystemModel {
|
||||
firstName!: string;
|
||||
lastName!: string;
|
||||
verified!: boolean;
|
||||
inviteAcceptedAt!: Date | null;
|
||||
deletedAt!: Date | null;
|
||||
|
||||
/**
|
||||
* Table name.
|
||||
*/
|
||||
@@ -33,19 +39,29 @@ export default class SystemUser extends SystemModel {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Detarmines whether the user is deleted.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isDeleted() {
|
||||
return !!this.deletedAt;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Detarmines whether the sent invite is accepted.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isInviteAccepted() {
|
||||
return !!this.inviteAcceptedAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Detarmines whether the user's email is verified.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
get isVerified() {
|
||||
return !!this.verified;
|
||||
}
|
||||
|
||||
/**
|
||||
* Full name attribute.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user