CanadaWest wrote:Creating an account via API the server appears to validate some parameters and not others.
It doesn't, for instance, check to see if the email address is alredy in use. But it does check the format of the PlayerName.
Is there a list somewhere of what the server does/doesn't check when creating a new account via API?
The AccountsAdd API command just uses the same validation routine as if you were manually creating the account from the server console. It's not as thorough as the routine that checks a player-created account. Specifically it looks at the following:
Name is 3 to 12 characters and only includes letters, numbers, dashes, or underscores.
Name cannot be Dealer, System, or Administrator.
Title cannot exceed 15 characters in length.
Level cannot exceed 50 characters in length.
Real Name cannot exceed 25 characters in length.
Password must be from 6 to 30 characters in length.
Location must be from 1 to 30 characters in length.
Email address cannot exceed 80 characters in length and must contain an @ sign and a period.
Avatar index must be from 0 to 64.
If Avatar is 0 then you must specify an avatar file and that file must currently exist.
Custom field cannot exceed 50 character limit.
Note field cannot exceed 250 character limit.