mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/password-reset: support having no smtp
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
const config = require('../config.js');
|
||||
const events = require('../events.js');
|
||||
const views = require('../util/views.js');
|
||||
|
||||
@ -10,7 +11,10 @@ class PasswordResetView extends events.EventTarget {
|
||||
super();
|
||||
this._hostNode = document.getElementById('content-holder');
|
||||
|
||||
views.replaceContent(this._hostNode, template());
|
||||
views.replaceContent(this._hostNode, template({
|
||||
canSendMails: config.canSendMails,
|
||||
contactEmail: config.contactEmail,
|
||||
}));
|
||||
views.syncScrollPosition();
|
||||
|
||||
views.decorateValidator(this._formNode);
|
||||
|
Reference in New Issue
Block a user