Create SP to Check User Login #27

Closed
opened 2024-09-23 20:42:44 -04:00 by colinrobbins · 12 comments
colinrobbins commented 2024-09-23 20:42:44 -04:00 (Migrated from gitlab.robbinsvault.dev)

Will need to update/create:

Database:

  • Can create a new function to get a user password returned based on an input email address.
  • eg. security.fn_get_user_password. Can call the function and pass in an email as a varchar.

API/inventoryapi/controllers/auth_controller.py

  • Will need to modify the authenticate_user function to call a function in the database.
  • Have to get the returned password from the DB function and then run it through the decryption to compare to the input password.

Your words:

  • Create a function on the database to obtain a user password based on email entered.
  • Modify the authenticate user function to call this function database and decrypt the password and compare with the inputted password.
  • Remove mention of username and instead only rely on email address.
  • Once completed verify functionality of endpoint/login.

Close task once completed and verified functionality.

Will need to update/create: _Database:_ - Can create a new function to get a user password returned based on an input email address. - eg. security.fn_get_user_password. Can call the function and pass in an email as a varchar. _API/inventoryapi/controllers/auth_controller.py_ - Will need to modify the authenticate_user function to call a function in the database. - Have to get the returned password from the DB function and then run it through the decryption to compare to the input password. Your words: - Create a function on the database to obtain a user password based on email entered. - Modify the authenticate user function to call this function database and decrypt the password and compare with the inputted password. - Remove mention of username and instead only rely on email address. - Once completed verify functionality of endpoint/login. Close task once completed and verified functionality.
colinrobbins commented 2024-09-23 20:42:44 -04:00 (Migrated from gitlab.robbinsvault.dev)

added #8 as parent issue

added #8 as parent issue
colinrobbins commented 2024-09-23 20:42:50 -04:00 (Migrated from gitlab.robbinsvault.dev)

assigned to @andrefernandes

assigned to @andrefernandes
colinrobbins commented 2024-09-23 20:43:15 -04:00 (Migrated from gitlab.robbinsvault.dev)

changed start date to September 23, 2024

changed start date to September 23, 2024
colinrobbins commented 2024-09-23 20:43:18 -04:00 (Migrated from gitlab.robbinsvault.dev)

changed due date to September 28, 2024

changed due date to September 28, 2024
colinrobbins commented 2024-09-23 20:50:55 -04:00 (Migrated from gitlab.robbinsvault.dev)

changed the description

changed the description
colinrobbins commented 2024-09-23 20:51:09 -04:00 (Migrated from gitlab.robbinsvault.dev)

changed the description

changed the description
colinrobbins commented 2024-09-23 20:51:32 -04:00 (Migrated from gitlab.robbinsvault.dev)

Updated the description, @andrefernandes let me know if you have any questions or need a hand!

Updated the description, @andrefernandes let me know if you have any questions or need a hand!
colinrobbins commented 2024-09-26 11:14:24 -04:00 (Migrated from gitlab.robbinsvault.dev)

changed the description

changed the description
colinrobbins commented 2024-09-26 11:14:39 -04:00 (Migrated from gitlab.robbinsvault.dev)

changed the description

changed the description
colinrobbins commented 2024-09-29 19:24:26 -04:00 (Migrated from gitlab.robbinsvault.dev)

mentioned in commit da0732406a

mentioned in commit da0732406a128b659c4e39a7384eb5165f195cb8
colinrobbins commented 2024-09-29 21:18:37 -04:00 (Migrated from gitlab.robbinsvault.dev)

added 2h of time spent at 2024-09-29

added 2h of time spent at 2024-09-29
colinrobbins commented 2024-09-29 21:18:53 -04:00 (Migrated from gitlab.robbinsvault.dev)

Combination of @andrefernandes and some small adjustments. Task is complete.

Combination of @andrefernandes and some small adjustments. Task is complete.
colinrobbins (Migrated from gitlab.robbinsvault.dev) closed this issue 2024-09-29 21:18:53 -04:00
Sign in to join this conversation.
No description provided.