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

Register a new user #7

Open
marcus-at-localhost opened this issue Feb 6, 2018 · 1 comment
Open

Register a new user #7

marcus-at-localhost opened this issue Feb 6, 2018 · 1 comment

Comments

@marcus-at-localhost
Copy link

marcus-at-localhost commented Feb 6, 2018

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

@vijinho
Copy link
Owner

vijinho commented Sep 4, 2018

Thanks for this, I haven't been involved in any coding for quite a while so this message slipped me by as I rarely check what's happening on github. I'm glad you have found my project interesting. If you like, please submit a patch to this project and I will credit you in it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants