-
Notifications
You must be signed in to change notification settings - Fork 0
Phase 1
ikhwanhayat edited this page May 13, 2012
·
1 revision
(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.
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.
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