Progress with Server Side

While working on our communications module (CA360) we made some good progress with the app. While Conor worked on the XML file which outlined the layout I got to work on the log in / registration system.

I found a html template log in form that I was able to customise to our needs using bootstrap. The user is only presented with two initial options these are to either login or to register.

Screen Shot 2015-03-19 at 19.29.34


When designing the registration system I wanted to verify that the email users were signing up with was valid. In order to do this I implemented a simple check. When the user registers the form data is stored in a temp_users table in the database. Along with the form data a unique (md5 hash) value is associated with the user. An email is sent to the user with a link that contains this unique value. When the user clicks on the link a php script will take the data out of the temporary users table and store it in the users table, thus completing registration and verifying the email is in use.