Email user verification colyseus
- User
Email user verification colyseus
- Assistant
Dear user,
Thank you for signing up for our platform, Colyseus. In order to verify your email address and activate your account, please click on the following link: [verification link].
If you did not sign up for this platform, please ignore this email.
Thank you and welcome to Colyseus!
Best regards, The Colyseus Team
- User
How to change link in email user verification server side Colyseus
- Assistant
To change the link in the email user verification server-side in Colyseus, you can modify the code where the verification email is being sent. Here is an example using TypeScript:
typescriptimport { Schema, Server } from "colyseus"; // Change the email verification link const emailVerificationLink = "https://www.yourcustomverificationlink.com/verify/"; export class MyServer extends Server { constructor() { super(); this.on("create", (room: Schema) => { // Send email verification link to the new user sendVerificationEmail(room.sessionId); }); } sendVerificationEmail(sessionId: string) { // Construct the verification link with the sessionId const verificationLink = `${emailVerificationLink}${sessionId}`; // Send an email to the user with the verification link // Example: sendEmail(verificationLink, sessionId); } }