mosquitto_passwd: Forbid the ':' character in usernames.

pull/1858/head
Roger A. Light 5 years ago
parent 2774515456
commit 6f4e0a1568

@ -1,3 +1,6 @@
Broker:
- mosquitto_password now forbids the : character. Closes #1833.
Client library:
- Fix send quota being incorrecly reset on reconnect. Closes #1822.
- Don't use logging until log mutex is initialised. Closes #1819.

@ -598,6 +598,10 @@ int main(int argc, char *argv[])
return 1;
}
if(strchr(username, ':')){
fprintf(stderr, "Error: Username must not contain the ':' character.\n");
return 1;
}
#ifdef WIN32
password_file = _fullpath(NULL, password_file_tmp, 0);
if(!password_file){

Loading…
Cancel
Save