1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #3303: Do not ask for password for ldap user creation

This commit is contained in:
Daniel Molina 2014-11-17 13:10:31 +01:00
parent 526ec6bcea
commit c4340382b2

View File

@ -642,10 +642,8 @@ function buildUserJSON(dialog){
if (driver == 'custom'){
driver = $('input[name="custom_auth"]', dialog).val();
}
if (!user_name.length || !user_password.length){
return false;
} else if (driver == "ldap") {
user_password = "-"
}
var user_json = { "user" :
@ -670,6 +668,16 @@ function setupCreateUserDialog(){
//$('button',dialog).button();
$('#driver', dialog).change(function(){
if ($(this).val() == "ldap"){
$('#pass',dialog).hide();
$('label[for="pass"]',dialog).hide();
} else {
$('#pass',dialog).show();
$('label[for="pass"]',dialog).show();
};
});
setupCustomAuthDialog(dialog);
$('#create_user_form',dialog).submit(function(){