mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 15:56:56 +00:00
refactor: refactor E2E auth helper and mail parsing logic
This commit is contained in:
@@ -31,8 +31,8 @@ export const MailpitHelper = {
|
||||
);
|
||||
const details = await detailRes.json();
|
||||
|
||||
const body = details.HTML || details.Text || "";
|
||||
const match = body.match(/https?:\/\/\S+activate\/\S+/);
|
||||
const body = details.Text || "";
|
||||
const match = body.match(/https?:\/\/\S*activate\S*/);
|
||||
|
||||
if (match) return match[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user