Skip to content
ikhwanhayat edited this page May 13, 2012 · 1 revision

Keperluan Sistem

(petikan dari post asal di Facebook)

Lets start with something simple. Kita buat simple authentication, register, login dan logout. Setiap contributor bebas untuk memilih database berdasarkan platform masing-masing.

Schema Users

Table Users memerlukan sekurang-kurangnya data berikut.

id (INT) [1]
username (STRING/UNIQUE)
password (STRING) [2]
email (STRING)
fullname (STRING)

[1] bergantung kepada keperluan environment. [2] sila gunakan hash.

Route

GET   /          - Reserved for blogpost
GET   /login     - Login form page
POST  /login     - Submit login
GET   /register  - Register form page
POST  /register  - Submit register user
GET   /logout    - Logout user
Clone this wiki locally