fix domain
This commit is contained in:
@@ -40,8 +40,10 @@ function Admin() {
|
||||
const handleGenerateResetToken = async (userId) => {
|
||||
try {
|
||||
const data = await api.generateResetToken(userId);
|
||||
// Build URL using current domain (works in dev and prod)
|
||||
const resetUrl = `${window.location.origin}/reset-password/${data.token}`;
|
||||
setGeneratedUrl({
|
||||
url: data.resetUrl,
|
||||
url: resetUrl,
|
||||
user: data.user,
|
||||
expiresAt: data.expiresAt
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user