Closed hoaivan closed 12 years ago
Anh đã thử set một số thuộc tính cho nó nhưng khi user mới thì vẫn bị y/cầu phải thay đổi password lần đầu tiên login vào hệ thống.
// prevent reset password student.setPasswordReset(false); student.getPasswordPolicy().setChangeRequired(false);
Do đó anh nghĩ có 2 cách:
Cách 1. Config hệ thống sao cho không y/cầu thay đổi password/reminder question lần đầu trong portal.properties
(Cách này đẹp hơn nhưng anh thử config trong file: portal.propertiesthì chưa đc)
users.reminder.queries.enabled=false users.reminder.queries.custom.question.enabled=false users.reminder.queries.required=false
Cách 2. Set login date cho user ngay từ thời điểm add hoặc import -> thì không thấy y/cầu reset password nữa. // prevent reset password student.setLastLoginDate(new Date());
Cách này có cái chuối là 2.1. sau khi import xong, quay về list students thì sẽ thấy tất cả các student này có thông tin tại Last login rồi. 2.2. Vẫn hiển thị lên password reminder question
Do đó anh nghĩ chắc phải làm theo (1) thì sẽ hơn. Tuy nhiên anh vẫn chưa config đc thành công cái này, em thử recommend anh có cách nào ko với?
Anh fai (1) set trong portal-ext.properties. (2) Sau do khi tao user thi fai set la ko reset password. Neu trong (1) ma false trong (2) true thi se van hien reset password => fai set ca 2 cho deu la false.
On Thu, Apr 5, 2012 at 10:47 AM, cuongmc < reply@reply.github.com
wrote:
Anh đã thử set một số thuộc tính cho nó nhưng khi user mới thì vẫn bị y/cầu phải thay đổi password lần đầu tiên login vào hệ thống.
// prevent reset password student.setPasswordReset(false); student.getPasswordPolicy().setChangeRequired(false);
Do đó anh nghĩ có 2 cách:
- Config hệ thống sao cho không y/cầu thay đổi password/reminder question lần đầu trong portal.properties (Cách này đẹp hơn nhưng anh thử config trong file: portal.propertiesthì chưa đc)
users.reminder.queries.enabled=false users.reminder.queries.custom.question.enabled=false
Set this to false to enable users without a reminder query to reset
their password. users.reminder.queries.required=false
- Set login date cho user ngay từ thời điểm add hoặc import -> thì không thấy y/cầu reset password nữa. // prevent reset password student.setLastLoginDate(new Date());
Cách này có cái chuối là 2.1. sau khi import xong, quay về list students thì sẽ thấy tất cả các student này có thông tin tại Last login rồi. 2.2. Vẫn hiển thị lên password reminder question
Do đó anh nghĩ chắc phải làm theo (1) thì sẽ hơn. Tuy nhiên anh vẫn chưa config đc thành công cái này, em thử recommend anh có cách nào ko với?
Reply to this email directly or view it on GitHub: https://github.com/hoaivan/Writing-Planet/issues/44#issuecomment-4968040
Ok, để anh thử lại. Tks em.
Đã note lại trong Writing Planet Development Notes Done @ rev.184
sau khi import hoac tao nguoi dung moi trong phan student