NorrWing / CityGuest-development

Issues trucking
4 stars 0 forks source link

BASEMENT theme - Registration Workflow per 'Anonymous user' #26

Open NorrWing opened 11 years ago

NorrWing commented 11 years ago

http://basement.norrwing.ro/en/contact-us http://basement.norrwing.ro/en/user/login/basement http://basement.norrwing.ro/en/user/password

Functionalities belong Anonymous Users: /1./ Custom Registration through Contact Us page Anonymous user can REQUEST a registration of the Basement account / role belong Contact Us form, from Basement theme.

/2./ Contact Us submitted When a user makes a registration through the Contact Us page, s/he would get register automatically and Admin will be notified about the same. After successful request belong Contact Us form, the user is notified into Basement theme, to wait 48H for request approval.

/3./ Account approval 'Only Administrators can assign basement role' Admin would be able to assign Basement role to that Anonymous user and that contacted user will be notified when Admin approves his request.

Administrative Mail:

 * Email Approval Notification -Basement

That Admin message will contain: You have been invited to join Basement by NORR WING Please click the link below to accept the invitation. Accept invitation If you don't want to accept the invitation, please ignore this email. Your account won't be created until you access the link above and set your password.

Few Technical details:

Basement Profile Creation:

Basement profile is created in co-ordination with the Contact Us form fields.

We have the CONTACT US webform fields, connected with "+ Add user (Basement profile)" This is good idea to link the "+ Add user (Basement profile)" with the Contact Us form; that's belong custom code. We defined my own submit handler in hook_form_alter(for the contact us webform), and we defined submit handler. We created a user with the webform submitted values. This user is not active by default. So, Admin will edit the newly created user and assign and activate the newly created user. User will receive a mail about their new account on Basement and will click on link to approve the Basement role.

/4./ Configure the Password account Contacted user from his approval mail verifies his account and only after that contacted user will be able to log into Basement sub domain.

Clicking on 'Accept invitation' Link from * Email Approval Notification -Basement. Will be opened the Basement LOG-IN page >>> will LOG-IN with Email / Password   -- Belong first LOG-IN will be required to set the Password [here will be required 2 Password fields]. -- Email it's that from Contact Us form.   -- As you saw the Account approval message with "Accept Invitation" Link.. there is no any temporary password..

|* However, other scenario (which I don't like it too much), to get work, after clicking on activation link, users will be redirected to Account Settings page directly, where they can set their password. This is logical and will work as well. There would be no temporary password as well.

/5./ Redirect after Log-In: After first LOG-IN (Only) -- the "Basement role" was activated >>> and will be opened "Congratulations" page - "Your Account has been activated!". Starting with 2nd. Log-in will be opened Basement ACCOUNT SETTINGS page.

Administrative Mail:

In the meantime, after successful process (described above), instantly the user is getting the * Email Welcome Notification -Basement |* This is working only after first Log-In, Just One time.

Above description is including all levels for successfully registrations for Anonymous users. Multilingual functionality belong all the entire system should be leverage at all!