Skip to content
Back

Is it possible in server side to check the user with password?

  • 0
  • Accounts
Mosh Ontong
1 Oct, 2023, 05:56

I want something like this in my authentication:

  1. First the user should fill up their email and password
  2. If the email and password is valid, then proceed to 3.
  3. Then this is the final authentication, the phone session.

I want this kind of authentication to further protect the user. Because I am going to handle a health data. In the 1, I want to use the cloud function to check if this kind of account is already exist on backend, if it is, then it will send true, otherwise false. If then exist now the final login session will be the phone session.

TL;DR
The user wants to implement server-side password validation and multi-factor authentication for added security in their application. They are concerned about the safety of client-side validation. One suggestion is to use a cloud function to check the database for a phone number. The user is advised to start with something simple and create two login screens, one for regular login/sign up and another for phone session authentication. If the email and password are valid, the user can proceed to the phone session authentication. It is also suggested to use an OAuth provider with multi-factor authentication support. The user wants this authentication to protect health data.
Drake
1 Oct, 2023, 06:39

It sounds like you want multi factor authentication?

Mosh Ontong
1 Oct, 2023, 06:47

it something like that

Drake
1 Oct, 2023, 16:35

It might be best to use some oauth provider that has support for multifactor authentication.

Mosh Ontong
2 Oct, 2023, 13:43

sir steve is it okay that:

  1. user will logein their email and password
  2. If it suceed then the system will execute the function to unverified the phone number of the user. Then the systel will automatically send the token to the user
  3. So that the user will have multifactor authentication.

Is this okay?

🍜Udon🍜
3 Oct, 2023, 02:26

I don't think you need to worry about getting the token after signing up/logging in the user, since that process already checked the token. I'm guessing you already have a way of storing phone numbers in a collection. All you have to do is create 2 login screens the first that normally logs in or sign up the user and the other that's like a gatekeeper after checking if the number is new or in the database. If it's in the database proceed. If it's not then add it then proceed

🍜Udon🍜
3 Oct, 2023, 02:26

Pretty simple πŸ‘Œ

🍜Udon🍜
3 Oct, 2023, 02:28

You could make checking the database for a phone number a cloud function. Would be better to start with something simple first. Good luck πŸ‘ and keep appwriting <:appwritecheers:892495536823861258>

Drake
3 Oct, 2023, 02:29

The problem is this is only client side validation which isn't safe

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more