@andreabiagini5/applicazioni-e-servizi-web-project - v1.1.3
    Preparing search index...

    Interface Account

    Entity representing an account.

    interface Account {
        get email(): string;
        get hashedPassword(): string;
        get rating(): Rating;
        get username(): string;
        changeEmail(newEmail: string): boolean;
        changeRating(newRating: Rating): boolean;
        checkPassword(password: string): Promise<boolean>;
    }
    Index

    Accessors

    Methods

    • Changes the email of the account.

      Parameters

      • newEmail: string

        the new email to set

      Returns boolean

    • Checks if the given password matches the hashed password.

      Parameters

      • password: string

        the password to check

      Returns Promise<boolean>