Skip to content

Added account creation and login for Guest and Host#12

Merged
Prakhar896 merged 15 commits intomainfrom
junhan
Jun 23, 2024
Merged

Added account creation and login for Guest and Host#12
Prakhar896 merged 15 commits intomainfrom
junhan

Conversation

@JunHammy
Copy link
Copy Markdown
Contributor

@JunHammy JunHammy commented Jun 22, 2024

Users can create a guest or host account and log in using their credentials. Users can also recover their accounts using a reset key, which will be emailed to the user.
Added resetKey and resetKeyExpiration to Guest, Host and Admin

@JunHammy JunHammy requested a review from Prakhar896 June 22, 2024 08:57
Comment thread config/boilerplateConfig.json
Comment thread index.js Outdated
Comment thread index.js Outdated
Comment thread models/Guest.js
Comment thread routes/identity/AccountRecovery.js Outdated
Comment thread routes/identity/AccountRecovery.js
Comment thread routes/identity/CreateAccount.js Outdated
Comment thread routes/identity/CreateAccount.js Outdated
Comment thread routes/identity/CreateAccount.js Outdated
Comment thread routes/identity/LoginAccount.js
@JunHammy JunHammy requested a review from Prakhar896 June 23, 2024 07:14
Copy link
Copy Markdown
Contributor

@Prakhar896 Prakhar896 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on rectifications. Just a few standardisation things left.

Additional: Consider adding Logger.log messages at critical endpoints like reset password and stuff.

Comment thread routes/identity/AccountRecovery.js Outdated
Comment thread index.js Outdated
Comment thread routes/identity/AccountRecovery.js
@Prakhar896 Prakhar896 added the enhancement New feature or request label Jun 23, 2024
@JunHammy JunHammy requested a review from Prakhar896 June 23, 2024 13:20
Copy link
Copy Markdown
Contributor

@Prakhar896 Prakhar896 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💀🙏

Comment thread routes/identity/AccountRecovery.js Outdated
const { Guest, Host, Admin } = require('../../models');
const { Universal, Emailer, Encryption } = require('../../services')
const { Universal, Emailer, Encryption, Logger } = require('../../services');
const { logger } = require('sequelize/lib/utils/logger');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

???????

Copy link
Copy Markdown
Contributor

@Prakhar896 Prakhar896 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Prakhar896 Prakhar896 merged commit 63975a9 into main Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants