Parameter Checks (#4147)
* add checks in the methods for checking if the data received in the parameters are in their correct type * Put the checks in the start of the method and fixed some indentation * no message * no message * no message * no message * no message * no message * no messagepull/4163/head
parent
ce050d0dce
commit
056ca49088
@ -1,3 +1,6 @@ |
||||
Meteor.methods |
||||
checkRegistrationSecretURL: (hash) -> |
||||
|
||||
check hash, String |
||||
|
||||
return hash is RocketChat.settings.get 'Accounts_RegistrationForm_SecretURL' |
||||
|
||||
Loading…
Reference in new issue