Page 1 of 1

Assistance Required for Customizing User Creation via API

Posted: 26 Jul 2024, 08:08
by dpaz
Dear Prometeo Support Team,

I hope this message finds you well.

We are currently using the HSNM API to integrate our Property Management System (PMS) with the RADIUS server for our hotel WiFi system. We have encountered an issue with the way user accounts are being created via the API.

Currently, when a user checks in, the API generates usernames and passwords as follows:

Username: LASTNAME+ROOM
Password: LASTNAME+ROOM

For example, when PEDRO GONZÁLEZ from room 305 checks in, the username and password generated are GONZALEZ305 / GONZALEZ305. This method is not secure, and our hotel management has requested a different approach.

We would like the username to be the email provided by the guest at check-in and the password to be the room number. For instance, if PEDRO GONZÁLEZ from room 305 checks in and provides the email pedro.gonzalez@example.com, the credentials should be:

Username: pedro.gonzalez@example.com
Password: 305

According to our development team, the current API does not support this configuration. However, we believe that there might be a way to achieve this through the API settings or additional configurations.

Could you please provide guidance or support on how we can implement the following requirements using the HSNM API:

Set the username to the guest's email provided at check-in.
Set the password to the guest's room number.

We appreciate your assistance in resolving this matter as it is crucial for enhancing the security and user experience of our hotel WiFi system.

Thank you for your attention and support.

Best regards.

Re: Assistance Required for Customizing User Creation via API

Posted: 26 Jul 2024, 09:00
by HSNMSupport
Hello Pedro,
You can use the API integration exactly as you do now but instead of passing LASTNAME+ROOM you pass the customer's email.
You will then simply set the customer's email as the user's username in the HSNM domain.
G.