City-of-Helsinki/linkedevents-ui

Add a separate sign-in page for outside users

Opened this issue · 2 comments

Add a simple new sign-in page at linkedevents.hel.fi/kirjaudu.

The page should include a button for login and another for registering.

The page should also include a radio button, which must be checked to activate the Login / Register buttons. Text: Kirjautumalla palveluun, [a]hyväksyt käyttöehdot »[/a]

The link should lead to a separate user agreement page.


Kirjaudu / Login

Rekisteröidy / Register [Main button]

◘Kirjautumalla palveluun, [a]hyväksyt käyttöehdot »[/a]


Functionality: The page should move users to a separate new rights group, that has draft-posting rights straight after first and subsequent log-ins. [API-specs in separate issue, forthcoming.]

Whe the API+UI solution is ready, the work from issue #503 should be reverted.

Might be doable with Tunnistamo, after work has been done on it in the omahelsinki project.

Most likely we actually want the user to be able to select which open organization they belong to, as there will be several. They will be created in the backend as affiliated organizations below different City of Helsinki organizations.

Then, we will need backend support (not there yet) for two UI features:

  1. GET organizations that allow anybody to become a member: /v1/organization/?open=true,
  2. PUT the user with organization membership: /v1/user/userid, organization_memberships=[org_id] should be allowed if org_id is an open affiliated organization.

Will create corresponding backend issues later.