diff src/lib/User.luan @ 59:02d8876dc41d

improve change email
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Nov 2022 18:45:22 -0700
parents 31c895b73bd0
children 389e5d8e5f8a
line wrap: on
line diff
--- a/src/lib/User.luan	Tue Nov 29 16:09:17 2022 -0700
+++ b/src/lib/User.luan	Tue Nov 29 18:45:22 2022 -0700
@@ -39,8 +39,8 @@
 		password = doc.password
 		name = doc.user_name
 		created = doc.created
-		hidden_password_1 = doc.hidden_password_1
-		hidden_password_2 = doc.hidden_password_2
+		hidden_password = doc.hidden_password
+		new_email = doc.new_email
 	}
 	set_local_only(users_by_id,user.id,user)
 	return user
@@ -55,8 +55,8 @@
 		password = user.password
 		user_name = user.name
 		created = user.created or time_now()
-		hidden_password_1 = user.hidden_password_1
-		hidden_password_2 = user.hidden_password_2
+		hidden_password = user.hidden_password
+		new_email = user.new_email
 	}
 end