ISN-Zurich / PersonalDossiers

A repository about the Personal Dossiers Project in ISN. It is about the development of a "collecting mechanism" of dossiers-items already hosted in ISN's digital library and transformation of this collection into user-defined educational modules.
0 stars 0 forks source link

Appropriate Handling of error-return codes and their visualization in Registration Form #63

Closed evangelia-mitsopoulou closed 10 years ago

evangelia-mitsopoulou commented 10 years ago

Current Behavior: When the user clicks the register button the validation takes places and let the user know if a specific email is valid or not. Similarly when one or both of the password fields is empty, only after we click on the register button a message is displayed. Client-side validation takes place for the comparison between the confirmed and the new password.

Desired Behavior: To apply client-side validation to all of the tests. If the registration form is incomplete, the the register now button is inactive (light grey text) and display the error message on the missing fields. Return 405 (not allowed) if the email that the user has typed is empty. Return 403 (forbidden), if the email already exists in the db. A password is valid if it has a minimum length of 6 characters.

The email can have only one @ sign. An email without an @ sign is not valid. The email must have at least one dot after the @ character. The email must not have two or more subsequent dots. The email must not have the @ sign followed by a non alpha-numeric character. (a-z, 0-9). The email must have at least two alphabetic characters after the last dot.

evangelia-mitsopoulou commented 10 years ago

refactoring in userModel: use of setValidationField function: b9fde41266bb6883dfc7b270847685e7c96968a3

evangelia-mitsopoulou commented 10 years ago

setValidationField function in setName: 8d9d02c9daa538f9cff60b31f26dc44aab8237c4

evangelia-mitsopoulou commented 10 years ago

loose binding on check of validity or emptiness of password field: 9afdc443d938e38094b2696a845c01bd403cf15f

evangelia-mitsopoulou commented 10 years ago

loose coupling/binding between user name field and the handling of its validity or emptiness: 69b5bedc4c03aa12da505d7deb527679a021bc1c

evangelia-mitsopoulou commented 10 years ago

loose binding of confirmation password field: 68480fc24e7898d5bcd9d01e9e680ec4627e199e

evangelia-mitsopoulou commented 10 years ago

first email rule applied: @ character should exist in the email: ae15511c1571d1d1b46f6015c387697006d40abd

evangelia-mitsopoulou commented 10 years ago

validation of email using regular expression 0489a342f91da69835e3f23e7e4df860b536f206