Giter Club home page Giter Club logo

userauth's Introduction

DESCRIPTION

  • You have been provided with a github repository with some code skeleton It has the following
  • index.php which is the landing page having links to register and sign in
  • dashboard.php is the landing page after successful login
  • DIR(FOLDER): assets/style.css
    • contains simple page style #DO NOT EDIT
  • DIR(FOLDER): html> #DO NOT EDIT
    • Login.html which is the login page whose form actions is php/login.php
    • Register.html which is register page whose form action is php/register.php
    • Resetpassword.html which is the reset password page whose form action is php/reset.php
  • DIR(FOLDER): php> #WORK IN THIS FOLDER
    • login.php which is the file meant to handle user login (and create user session)
    • register.php which is meant to handle user registration
    • reset.php which is meant to reset user password
    • logout.php which is meant to handle user logout (destroy user session)

SETUP

  • fork this repository to you accounts
  • clone the repository to your local pc using git clone <repository link here>
  • complete the exercise
  • onces done, stage your changes using git add <filename>
  • commit your changes using `git commit -m "commit message"
  • push you change using git push

Once you are done, copy the link and paste as your submission.

TASK:

  • With the provided code skeleton, you task is to complete the following files
    • registeer.php this file is meant to handle user registration. The form register.html takes in the full names, email and password. In your register.php, you have a skeleton of a function, this function should take the full names, email and password and store the data in storage/users.csv file (this file is like your database). If it was successfully stored, the users should receive the message (“User Successfully registered”)
    • login.php. This file is meant to handle user login from the login form, the user inputs email and password from the form, you should check if the email and password provided match that which is in the csv file and if they match, create a session and put the username inside and redirect the user to the dashboard, if it does not match, redirect the user back to the login page
    • reset.php this file is meant to update the user password, the data is received from resetpassword.html, it takes in the email and the new password and searches the file, if there is a match for the email, it should update the password field with the new data from the form, else, it should print out “User does not exist”
    • logout.php this file is meant to destroy the user existing session and redirect to the

userauth's People

Contributors

rachamv avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.