|
|
|
|
@ -1620,7 +1620,11 @@ void on_user_save(GtkWidget *self, dictionary *dict){
|
|
|
|
|
if (!window->old_password||window->old_password&&strcmp(window->old_password,password)){
|
|
|
|
|
time_t t = time(NULL);
|
|
|
|
|
struct tm tm = *localtime(&t);
|
|
|
|
|
password_changed_date = yon_char_unite(yon_char_from_int(1900+tm.tm_year),"-",yon_char_from_int(tm.tm_mon+1),"-",yon_char_from_int(tm.tm_mday),NULL);
|
|
|
|
|
char *month = yon_char_from_int(tm.tm_mon+1);
|
|
|
|
|
if (strlen(month)==1){
|
|
|
|
|
month=yon_char_append("0",month);
|
|
|
|
|
}
|
|
|
|
|
password_changed_date = yon_char_unite(yon_char_from_int(1900+tm.tm_year),"-",month,"-",yon_char_from_int(tm.tm_mday),NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int useradd_boot_active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->UseraddBootCheck));
|
|
|
|
|
|