3.6 Logging in
The system supports multiple devices under one account. A user can create an account on one mobile device and then log in to another mobile device, PC softphone or the VUP using the same account.
In order to log in the user has to provide one of the public IDs, either a phone number or username and password.
If the user created the account on the mobile phone with the phone number then he has to create a password in the My Profile menu.
If the initial registration was via email then the password is already set.
From the My Profile menu a user can also change the password.
The username or phone number and password pair is sent to the EMCD’s method authorize.ashx. The api looks for the provided public ID in the api.clients.phone and api.clients.username. If found it then retrieve the api.clients.login value which is the login in the voipswitch.clientsshared table and gets the password for that login. If the password agrees with the provided by the user then the authentication is successful. The SIP login and password is sent back in the response to the client. This pair will be stored locally by the application until the user logs out from the app.