diff options
Diffstat (limited to 'eurephiadm/commands/users.c')
-rw-r--r-- | eurephiadm/commands/users.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/eurephiadm/commands/users.c b/eurephiadm/commands/users.c index 0032259..c9ae102 100644 --- a/eurephiadm/commands/users.c +++ b/eurephiadm/commands/users.c @@ -610,7 +610,7 @@ int add_user(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int a break; case 'P': - if( strlen_nullsafe(optargs[0]) < 6 ) { + if( strlen_nullsafe(optargs[0]) < 4 ) { fprintf(stderr, "%s: password is too short\n", MODULE); return 1; } @@ -712,8 +712,6 @@ int add_user(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, int a node2 = xmlNewChild(node, NULL, (xmlChar *) "password", (xmlChar *) passwd); xmlNewProp(node2, (xmlChar *) "pwhash", (xmlChar *) "none"); - xmlSaveFormatFileEnc("-", user_xml, "UTF-8", 1); - // Add the user rc = eDBadminAddUser(ctx, user_xml); fprintf(stdout, "%s: %s\n", MODULE, |