Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Register a new user #7

@marcus-at-localhost

Description

@marcus-at-localhost

Hi,
thanks for this boilerplate code.
I encountered a problem with registering as a new user.

  1. I setup the Database in manually with importing the create.sql
  2. On register as a user, I got an error because of a missing index danger in notifications.phtml (I fixed that)
  3. The error then displayed was an Exception Uuid validate_alpha_dash that lead me to /app/lib/FFCMS/Mappers/Users.php
    public $validationRules = [
        #'uuid'              => 'alpha_dash',
        'email'             => 'valid_email',
        'firstname'         => 'valid_name',
    ];

uncommenting the validation rule helped to get past the registration (error: PHP mailer class wasn't found), but since this is a pretty complex application, I have a hard time to wrap my mind around it finding out if this is intentional or a mistake on my side - means - where is the uuid generated why does it not pass the validation rule.

Edit: I delete all db tables and tried the automatic install via CLI.php
Unfortunately, with db.create=true no User was created.
Edit2: I managed to give myself admin right, but I have no what I'm looking at in the backend :) - but it's something I will figure out.
Edit3: I believe the validation rule has to be alpha_numeric app wide, right? Since you dropped the 36char UUID?!

Thanks for any hint.
Marcus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions