Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Signup page

Ronak Patel requested to merge dev/signuppage into main
  1. https://gitlab.e.foundation/e/infra/backlog/-/issues/1181
  2. https://gitlab.e.foundation/e/infra/backlog/-/issues/1182
  3. https://gitlab.e.foundation/e/infra/backlog/-/issues/1183

For reference: https://gitlab.e.foundation/groups/e/infra/-/epics/67#note_294947

  • Move account creation logic from docker-welcome to ecloud-accounts
    • Create AccountController and AccountService
      • Add a GET route for a new public page for creating accounts
        • Move the register page markup and styles that are currently here to a VueJS script
        • Move translations
        • Replace the jekyll erb tags in the template with the corresponding VueJS translation function in the template
        • Move the translations defined in docker-welcome to ecloud-accounts l10n folder
        • Port existing captcha logic to CaptchaService with a new method and a verify method
          • Use this with the initial state provider for a captcha image for the VueJS application
      • Add a POST route to handle account creation
        • Input validation from create.php to be ported to the controller method(or a new service AccountService)
        • Account creation logic to be ported from ldap_account_creator.php
        • Post creation actions to be ported from base_ecloud_account_creator.php
        • Any required config(default quota value, URLs, env variables, secrets) to be defined in config.php under an ecloud-accounts entry
          • They can be gotten using $config->getSystemValue in the code

Note: We no longer need to have an email invite and recovery email is no longer a mandatory attribute

  • Translation to add

configuration to add

docker exec -u www-data dev01_nextcloud /var/www/html/occ config:system:set common_services_url --value="common"
docker exec -u www-data dev01_nextcloud /var/www/html/occ config:system:set alias_domain --value="murenatest.io"
docker exec -u www-data dev01_nextcloud /var/www/html/occ config:system:set common_service_token --value="abcd1234"
docker exec -u www-data dev01_nextcloud /var/www/html/occ config:system:set ecloud_accounts_secret --value="ionFiXFoaMEm"
docker exec -u www-data dev01_nextcloud /var/www/html/occ config:system:set common_api_version --value="v2"
docker exec -u www-data dev01_nextcloud /var/www/html/occ config:system:set user_cluser_id --value="HEL01"
docker exec -u www-data dev01_nextcloud /var/www/html/occ config:system:set ldapobjectemp 0 --value='murenaUser'
docker exec -u www-data dev01_nextcloud /var/www/html/occ config:system:set ldapobjectemp 1 --value='simpleSecurityObject'
Edited by Ronak Patel

Merge request reports

Loading