mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 13:35:42 +09:00
fix(auth): fix approval signups and auto-join invites (#3467)
This commit is contained in:
1 parent
e403fb6cce
commit
d5ca5d8293
64 files changed
+622
-72
No files matched your search
@@ -936,6 +936,7 @@ function pendingRegistration(userId: string) {
|
||||
requested_at: `2026-09-01T00:00:${userId.slice(-2)}.000Z`,
|
||||
registration_url_id: null,
|
||||
client_ip: '127.0.0.1',
|
||||
invite_code: null,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1093,6 +1093,7 @@ const StoredPendingRegistrationSchema = PendingRegistrationResponse.extend({
|
||||
requested_at: StoredRegistrationTimestampSchema,
|
||||
registration_url_id: StoredNullableStringSchema.pipe(StoredRegistrationUrlIdSchema.nullable()),
|
||||
client_ip: StoredNullableStringSchema,
|
||||
invite_code: StoredNullableStringSchema,
|
||||
}) satisfies z.ZodType<InstancePendingRegistration>;
|
||||
|
||||
function isRegistrationUrlUsable(registrationUrl: InstanceRegistrationUrl, now: Date): boolean {
|
||||
|
||||
Reference in new issue
Block a user