diff --git a/nodebb-theme-quantum-devs/templates/account/profile.tpl b/nodebb-theme-quantum-devs/templates/account/profile.tpl
index 7fa531c639..f40e64774d 100644
--- a/nodebb-theme-quantum-devs/templates/account/profile.tpl
+++ b/nodebb-theme-quantum-devs/templates/account/profile.tpl
@@ -54,6 +54,22 @@
+ {{{ if isProfessor }}}
+
+
+
+ {{{ else }}}
+
+
+
+ {{{ end }}}
+
{{{ if email }}}
+
+
+
+
+
+
+
diff --git a/public/src/client/register.js b/public/src/client/register.js
index d8144d26d5..5b38a874d8 100644
--- a/public/src/client/register.js
+++ b/public/src/client/register.js
@@ -11,9 +11,11 @@ define('forum/register', [
Register.init = function () {
const username = $('#username');
const password = $('#password');
+ const isProfessor = $('#isProfessor');
const password_confirm = $('#password-confirm');
const register = $('#register');
+ showSuccess(isProfessor)
handleLanguageOverride();
$('#content #noscript').val('false');
diff --git a/src/user/create.js b/src/user/create.js
index 610d614e81..aadace9d11 100644
--- a/src/user/create.js
+++ b/src/user/create.js
@@ -41,6 +41,7 @@ module.exports = function (User) {
}
async function create(data) {
+
const timestamp = data.timestamp || Date.now();
let userData = {
@@ -49,6 +50,7 @@ module.exports = function (User) {
joindate: timestamp,
lastonline: timestamp,
status: 'online',
+ isProfessor: data.isProfessor == 'on'
};
['picture', 'fullname', 'location', 'birthday'].forEach((field) => {
if (data[field]) {