From 78e1544321b8ca200ed1291e80b63fc41199497f Mon Sep 17 00:00:00 2001 From: Tina_Azure <-> Date: Sat, 22 Apr 2023 22:56:28 +0200 Subject: [PATCH] spec add login logout and signup --- spec/spec.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spec/spec.md b/spec/spec.md index cb4d46e..f9a4570 100644 --- a/spec/spec.md +++ b/spec/spec.md @@ -146,9 +146,12 @@ Acceptance will change the $accepted value for $requestID to false. Declining wi There are times that a freelancer may wish to send a custom invoice to a customer, such as after making a quote for a custom commission. Freelancers should be able to fill out a simple form to create a custom invoice on behalf of a user. The back-end of these invoices should be identical to ones created by requests. Invoices created by freelancers should have $accepted set to true automatically upon creation. -### "/freelancer/login" -### "/freelancer/logout" -TODO: Figure out what to do for this. ++++ "/freelancer/login" +email + password ++++ "/freelancer/logout" +clears secure cookie and removes session from DB ++++ "/freelancer/signup" +creates user using a name, email and password while creating a salted hash of the password ### "/freelancer/profile" Profile page collating freelancer pages.