Mercurial Hosting > chat
diff src/invite.js.luan @ 88:7b339b1ccd11
add tools/users.html
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 13 Mar 2025 16:18:39 -0600 |
parents | a47036fd0158 |
children |
line wrap: on
line diff
--- a/src/invite.js.luan Wed Mar 12 14:20:10 2025 -0600 +++ b/src/invite.js.luan Thu Mar 13 16:18:39 2025 -0600 @@ -12,8 +12,6 @@ local current_user = User.current or error() local Shared = require "site:/lib/Shared.luan" local send_mail = Shared.send_mail or error() -local Utils = require "site:/lib/Utils.luan" -local base_url = Utils.base_url or error() return function() @@ -27,8 +25,7 @@ return end local invitee = get_or_create_user_by_email(email) - local password = invitee.password - local url = base_url().."/do_login.html?user="..invitee.id.."&password="..password.."&with="..url_encode(user.email) + local url = invitee.login_url().."&with="..url_encode(user.email) local who = user.name or user.email send_mail { To = email @@ -40,7 +37,7 @@ <%= url %> -Or login with your email and the password: <%=password%> +Or login with your email and the password: <%=invitee.password%> <% ` } %>