import { Meteor } from 'meteor/meteor'; import { check } from 'meteor/check'; import type { ServerMethods } from '@rocket.chat/ui-contexts'; import { settings } from '../../../settings/server'; Meteor.methods({ checkRegistrationSecretURL(hash) { check(hash, String); return hash === settings.get('Accounts_RegistrationForm_SecretURL'); }, });