ranjanistic/knotters

Deactivated account profile view not working

Closed this issue · 1 comments

Reproduce

  • Login
  • settings > deactivate account
  • login again
  • profile page opens

Problem

Profile should not be visible, instead deactivated view should be visible, having button to reactivate account, which is present in the same template as profile but with condition whether profile is active or not (which is apparently not working).

Update

  • Reactivate button on frontend is not working (due to some error in frontend)

Conditions to achieve

  • When a user is not deactivated, her profile should be visible to everyone (non logged in users as well)

  • When a user deactivates account, her profile should not be visible to anyone (404 page should be presented).

  • When a deactivated user logs in, her profile page should display Reactivate account button to her only. The button when clicked should send a reactivation request and the user account should be reactivated and logged out automatically.

  • After reactivation, the user's profile should again be visible to everyone.