Hacker News new | past | comments | ask | show | jobs | submit login

In pseudo-code:

  if not check_password(submitted_password) then
    HTTP 401
  else if password_last_changed < threshold then
    change_password(submitted_password + submitted_password)
    HTTP 401
  else
    log_user_in()
    HTTP 200
  endif



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: