mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Fixes bug #527: Users with empty names/passwords
Sunstone will warn the user that both fields need to be filled in.
This commit is contained in:
parent
67d8ecf207
commit
586a21035c
@ -196,6 +196,11 @@ function setupCreateUserDialog(){
|
||||
$('#create_user_form').submit(function(){
|
||||
var user_name=$('#username',this).val();
|
||||
var user_password=$('#pass',this).val();
|
||||
if (!user_name.length && !user_password.length){
|
||||
notifyError("User name and password must be filled in");
|
||||
return false;
|
||||
}
|
||||
|
||||
var user_json = { "user" :
|
||||
{ "name" : user_name,
|
||||
"password" : user_password }
|
||||
|
Loading…
x
Reference in New Issue
Block a user