วันจันทร์ที่ 12 มิถุนายน พ.ศ. 2560

commit เพิ่มเติม : เปลี่ยน password ของ user

commit
ใน commit นี้เพิ่มในส่วนการเปลี่ยน password โดยจะใช้ระบบ authen ของ django ทำเลย

PasswordChangeForm
เป็น form ของ django สำหรับใช้เปลี่ยน password
มันจะเอา user argument มาเป็น constructor

update_session_auth_hash
ใช้เพื่อไม่ให้ user ต้องล็อคอินอีกครั้ง , เหตุผลด้านความปลอดภัย
---------------------------------------------------------------------
change condition for password in registration
แก้ให้การสมัครจะต้องมีรหัสความยาวมากกว่า 8
ref
https://simpleisbetterthancomplex.com/tips/2016/08/04/django-tip-9-password-change-form.html

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

commit เพิ่มเติม : เพื่ม userstory, bookmark

>>  add userstory ทำการเพิ่ม userstory ใน functional tests >>  add bookmark for user เพิ่มระบบ Bookmark โดยการสร้าง model ขึ...