1
0
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:
Hector Sanjuan 2011-04-01 00:23:07 +02:00 committed by Jaime Melis
parent 67d8ecf207
commit 586a21035c

View File

@ -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 }