Skip to content
Snippets Groups Projects

Tuleap 40 register

Merged Sebastien requested to merge tuleap-40-register into main

Merge request reports

Merged by SebastienSebastien 3 years ago (Nov 25, 2021 2:39pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Camille Simiand
  • 14 use Symfony\Component\OptionsResolver\OptionsResolver;
    15 use Symfony\Component\Validator\Constraints\IsTrue;
    16 use Symfony\Component\Validator\Constraints\Length;
    17 use Symfony\Component\Validator\Constraints\NotBlank;
    18 use Symfony\Component\DependencyInjection\Loader\Configurator;
    19
    20 class RegistrationFormType extends AbstractType
    21 {
    22 private string $byPass;
    23 public function __construct(string $byPass){
    24 $this->byPass = $byPass;
    25 }
    26
    27 public function buildForm(FormBuilderInterface $builder, array $options): void
    28 {
    29 $row_attr = ['class' => 'form-group d-flex flex-column m-auto mb-4 col-6',];
  • 4 <meta charset="UTF-8">
    5 <title>{% block title %}MemoRekall{% endblock %}</title>
    6 {# Run `composer require symfony/webpack-encore-bundle`
    7 and uncomment the following Encore helpers to start using Symfony UX #}
    8 {% block stylesheets %}
    9 {{ encore_entry_link_tags('app') }}
    10 {% endblock %}
    11
    12 {% block javascripts %}
    13 {{ encore_entry_script_tags('app') }}
    14 {% endblock %}
    15 </head>
    16 <body class="container">
    17 <div class="d-flex flex-row justify-content-center mb-5">
    18 <div class="d-flex flex-column">
    19 <a href="/my_capsules"><img id="header-memorekall-logo" class="memorekall-logo" src="{{ asset('build/images/MemoRekall.png') }}"></a>
    • Following the example of the previous MemoRekallMember app, the logo link should target:

      1. /login page when the user is not authenticated
      2. /my_capsules (or /homepage if we decide to rename it for more consistency) page when the user is authenticated
    • Author Contributor
      • For backports we must keep /my_capsules as home page.
      • Going back to login for an unauthenticated user we should use an interceptor that redirect automatically the user to the login page (On every page)
    • Ok, thanks for your answer.

      Could you implement the interceptor in this MR please?

    • Author Contributor

      Nope : the aim of this US associated to this MR is not login. But only register.

      In the current branch, on login you get an exception, it won't be testable.

      I put in the tuleap-45-login MR to remember this discussion.

      Edited by Sebastien
    • changed this line in version 6 of the diff

    • I understand what you're saying but I am not completely convinced. IMO, we shouldn't introduce a broken feature: clicking on MemoRekall logo from /register is currently broken.

      I suggest to redirect to /home for this MR (it will be updated later with "login" feature MR) where we will see only:

      • the logo
      • the login button
      • the register button
      • no forms displayed

      --> What do you think about creating this new page inside this MR?

    • Author Contributor

      It's done in the tuleap-45-login MR. So, I Keep my veto for this comment

    • Please register or sign in to reply
  • 1 <!DOCTYPE html>
  • 1 <!DOCTYPE html>
    2 <html>
    3 <head>
    4 <meta charset="UTF-8">
    5 <title>{% block title %}MemoRekall{% endblock %}</title>
    6 {# Run `composer require symfony/webpack-encore-bundle`
    7 and uncomment the following Encore helpers to start using Symfony UX #}
    8 {% block stylesheets %}
    9 {{ encore_entry_link_tags('app') }}
    10 {% endblock %}
    11
    12 {% block javascripts %}
    13 {{ encore_entry_script_tags('app') }}
    14 {% endblock %}
    15 </head>
    16 <body class="container">
  • 4 4 SYMFONY_DEPRECATIONS_HELPER=999999
    5 5 PANTHER_APP_ENV=panther
    6 6 PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
    7
    8 DATABASE_URL="mysql://rekallfrwsmember:sm4SyZVPu6wpjZfg@mysql:3306/rekallfrwsmember?serverVersion=5.6&charset=utf8"
    9 BY_PASS_CODE=ed156b9188ecddf0c556d5712f0a84cc
  • 1 <?php
  • 1 <?php
  • 1 <?php
  • 1 <?php
  • 1 <?php
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading