LesFruitsDefendus / saskatoon-ng

The new generation Saskatoon harverst management system
GNU Affero General Public License v3.0
10 stars 24 forks source link

Improve pickleader onboarding flow #372

Open 2ynn opened 6 months ago

2ynn commented 6 months ago

Pickleaders should read and agree to a confidentiality agreement before being granted access to the system

2ynn commented 6 months ago

related to PR #230

2ynn commented 5 months ago

A new Onboarding model will be created (OneToMany relationship with Person model). From the admin panel, it should be easy to enter multiple email address at once. Once an onboarding group is ready, an invitation can be sent using an admin action: this will automatically send an email to all newly registered users and provide them with a temporary password.

When they first log into the platform, onboarding pickleaders are marked as pending validation by being assigned the volunteer role. They will first be redirected to a terms&condition page that they need to sign. Agreeing to the form will update their role to pickleader, which will give them access to a Person Update form so they can update their personal information

oxgr commented 5 months ago

A new password_set field will be added to AuthUser to differentiate newly-onboarded users and existing pickleaders looking change password.

Index will redirect based on volunteer role with password and AuthUser.password_set value.

Some extra steps added to the pickleader onboarding flow:

  1. First-time login
  1. Terms & conditions
  1. Person update form
  1. Reset password

Existing pickleaders should be able to reset their password by asking an admin (clicking revolving icon beside emails in Community view). This will set password_set to False which, on login, automatically redirects members to step (4).

TODO: