• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Remote User Account Creation

How to create a user account remotely ?

  • HTTPS

    Votes: 0 0.0%
  • SQL

    Votes: 0 0.0%

  • Total voters
    0

jarek.prorok

Chevereto Member
Hello,

I need to create remotely a batch of new user accounts through a back-end service. In order to do so, I see two possibilities, of course besides the manual account creation.

1. over HTTPS method POST with parameters auth_token, email, username and password. Problem that auth_token is generated on the server side and is not accessible. Couldn't find anything described in the APIs'. Is there a way of acquiring a temporary auth_token or inserting directly into database for the temporal use?

2. inserting data directly into the database, passwords already hashed and couldn't see the place where is it stored, anybody knows the table name/column name, or suggest some procedure how to insert directly into the database, a fully generated user account? SQL insert statement, hashing algorithm, location in the DB etc details...

Please give me your feedback or ideas!

Best Regards,
Rihards
 
To do this you should create an custom API in Chevereto (app/routes/api-custom.php for example) and set a simple API key access + only accept request from certain server/IP. Then you only need to use the built-in methods to do what you need. For instance CHV\User::insert(); insert a row in the chv_users table, CHV\Login::addPassword() adds a hashed password in the database (chv_logins table) and so on. All methods are there just look for them.
 
Back
Top