@ -1227,6 +1227,7 @@
"Read_only_changed_successfully": "Read only changed successfully",
"Read_only_channel": "Read Only Channel",
"Read_only_group": "Read Only Group",
"Reason_To_Join": "Reason to Join",
"Record": "Record",
"Redirect_URI": "Redirect URI",
"Refresh_oauth_services": "Refresh OAuth Services",
@ -73,6 +73,15 @@
</div>
{{/if}}
{{#if manuallyApproveNewUsers}}
<div class="input-line">
<label for="reason">{{_ "Reason_To_Join"}}</label>
<div>
<input type="text" name='reason' id="reason" />
<div class="input-error"></div>
{{#if state 'forgot-password' 'email-verification'}}
@ -58,6 +58,9 @@ Template.loginForm.helpers({
},
hasOnePassword() {
return typeof OnePassword !== 'undefined' && OnePassword.findLoginForUrl && typeof device !== 'undefined' && device.platform && device.platform.toLocaleLowerCase() === 'ios';
manuallyApproveNewUsers() {
return RocketChat.settings.get('Accounts_ManuallyApproveNewUsers');
}
});