• Resolved kacsa

    (@kacsa)


    Hi there,

    I have what I think is a pretty unique question, but it might be useful to solve for others too. I’m trying to get the data a user types in and get that data not only to the wp_users table, but to a separate table as well (in the future a separate server’s table, but it’s just testing phase now).

    I found out that I can open a mysql connection and copy the data to my desired table, in the class_rm_public.php file. The problem is, because the register form and the login form uses the same string for username and password (“username” and “password”), whenever someone logs in, that data will be copied to the new table as well. I tried to edit the login template, but that not surprisingly caused issues in the actual login process. I also tried to edit the class_rm_frontend_form_reg.php file, but that killed the registration process.

    Please help me find the point where registrationmagic differentiates which form is a login form and which is a registration form (if that even is a thing), so I can use that to navigate the latter to the new table.
    I could use the dashboard of RM, but as far as I know that doesn’t save the login name or password, which I would need to use for an SSO system.

    I’m open to any suggestions as well, I have full control over my DB, but can’t do much on the other DB, I need the data inserted to, which of course is not a WP database.

    Keep up the good work.
    Best regards,
    Kacsa

    P.S.: Having a different login and register username field would be nice anyway, because some webpage owners might want to let users know that they can use both Email and username to login.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kacsa

    (@kacsa)

    Oh, forgot to mention: I guess the solution could be to put my code where I pick up the username and password to a different file, or different part of class_rm_public.php, because now I just threw it to the end of that file. I tried a couple of different spots, but the result was that my code didn’t work anymore.

    Thread Starter kacsa

    (@kacsa)

    Well, nevermind, I thought I tried to add my code to the class_rm_frontend_form_reg.php as well, but turns out I didn’t and it works.

    Thanks for the plugin anyway 🙂

    Not sure if you’re doing the same thing as me or not.
    But my goal was to get all of the registration fields to a different and new MySQL DB.
    I have been able to do that.
    If that’s what you’re after let me know and I can share my method/code.

    Thread Starter kacsa

    (@kacsa)

    Thanks for the help, but I was able to get it done myself. All’s fine.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘differentiate login and register form’ is closed to new replies.