Added check if the last admin user is to be deleted, and if that's the case, prevent it and return with error message.

This commit is contained in:
vraatikka
2013-08-04 23:02:29 +03:00
parent 6faca29281
commit f62cf1ea7e
3 changed files with 26 additions and 11 deletions

View File

@ -33,7 +33,7 @@
extern int admin_verify(char *, char *);
extern char *admin_add_user(char *, char *);
extern int admin_test_user(char *);
extern int admin_search_user(char *);
extern void dcb_PrintAdminUsers(DCB *dcb);
char* admin_remove_user(char* uname, char* passwd);