實作管理者用戶管理、邀請註冊功能
This commit is contained in:
@@ -130,6 +130,7 @@ export default function RegisterPage() {
|
||||
email: formData.email,
|
||||
password: formData.password,
|
||||
department: formData.department,
|
||||
role: isInvitedUser ? invitedRole : 'user', // 如果是邀請用戶,使用邀請的角色
|
||||
})
|
||||
|
||||
if (success) {
|
||||
|
Reference in New Issue
Block a user