Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

[ZAuth/OAuth/Users] Registration process improvements #4449

Description

@Kaik

I'm currently working on #4070 and at the same time I'm learning about the registration process and how to implement facebook/google registration nicely and improve whole flow.

It seems our registration flow is carried from quite old times while nowadays it's quite different much more easy (js popups) etc...
I like medium.com or 9gag.com registrations but I guess these are too advanced atm.

I will list here issues which I have with the process and then will try to address them.

  1. When an Authentication method is selected it is saved in session and there is no easy way to change it (you have to clear cookies) idk why this is needed it should be in url

  2. I think both native uname and native email methods are obsolete and native either could replace them.

  3. We may want to "prefer" or preload native method form... what I mean by that is that all other methods are re entrant, so we only need to show links like sign up with google facebook with the native method form.

  4. I'm not sure if throwing an error here is the right way to handle situation when user already exist.
    I mean he went thru whole authentication process, he already is our user and at the and he is getting shoot in the face because he used register with facebook instead of login with facebook... ;)
    https://github.com/zikula/core/blob/master/src/system/UsersModule/Controller/RegistrationController.php#L116

  5. hmm I wonder if anyone have that facebook register working as I do have lots of errors...

  6. I'm not sure if 3rd party authentication/authorisation should use the same form or at least same events/hooks
    (all antispam protections are present on that form as well as policies and I guess profile fields as well (I have them turned off))

  7. 3rd party login -> Uname "generation" and email check is weak, fields are hidden and in case something is wrong (uname/email are not unique) error occurs while there is no relevant field displayed.

  8. Facebook registration for some reason does not provide email address. (Email is present and enabled in permissions) too old FB api version? It seems facebook oauth provider is no longer maintained or at least not updated frequently (provider graph version is 2.10 current graph version is 8) support for 2.10 ended last year.

  9. Not active authentication method are still accessible via url /en/register?authenticationMethod=method_name

  10. When hooks are reporting errors here https://github.com/zikula/core/blob/3.0/src/system/UsersModule/Controller/RegistrationController.php#L157 User is redirected to homepage here https://github.com/zikula/core/blob/3.0/src/system/UsersModule/Controller/RegistrationController.php#L227

[VIP] I will work on it now. I have core 3 installed as well so anything I'm working on will be proposed to v3 too.

#3720 #4351 #4197

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions