VictorAZ12 / web-request-forum

0 stars 0 forks source link

Improved Login/Register Section with JavaScript #25

Closed Jackieljq closed 4 months ago

Jackieljq commented 4 months ago

Added a new JavaScript file HabitNest.js to handle the login and register functionality.

VictorAZ12 commented 4 months ago

Should be handled using WTForms tokens to avoid CRSF attacks, as required in lecture slides.

VictorAZ12 commented 4 months ago

Submission handled by Flask WTForm. Need client-side validation, and display of error messages such as display "email registered"

Jackieljq commented 4 months ago

@VictorAZ12 I have added a simple demo of login error message to address basic validation on the client side. The form now displays messages for "user not registered" and "incorrect password".

test2 testerror
VictorAZ12 commented 4 months ago

Moved to #41