diff src/lib/User.luan @ 57:169ac5fdb320

add change email
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 28 Nov 2022 23:47:19 -0700
parents 7ce54f6d93f2
children 31c895b73bd0
line wrap: on
line diff
--- a/src/lib/User.luan	Mon Nov 28 22:00:43 2022 -0700
+++ b/src/lib/User.luan	Mon Nov 28 23:47:19 2022 -0700
@@ -39,6 +39,7 @@
 		password = doc.password
 		name = doc.user_name
 		created = doc.created
+		hidden_password = doc.hidden_password
 	}
 	set_local_only(users_by_id,user.id,user)
 	return user
@@ -53,6 +54,7 @@
 		password = user.password
 		user_name = user.name
 		created = user.created or time_now()
+		hidden_password = user.hidden_password
 	}
 end
 
@@ -150,6 +152,7 @@
 	end
 	return concat(t)
 end
+User.new_password = new_password
 
 function User.get_or_create_by_email(email,change_password)
 	local user = User.get_by_email(email)