mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
Add configuration to enable/disable internal smtp client (#2337)
Fix #1881 This change allows the server operator to enable or disable the internal SMTP client that sends activation emails. With this new configuration option server operators can choose to require email activation yet use an external method of account verification and/or account token notification.
This commit is contained in:
parent
dbf7d7f748
commit
3e39432ccc
4 changed files with 20 additions and 2 deletions
|
|
@ -374,7 +374,7 @@ void MainWindow::loginError(Response::ResponseCode r, QString reasonStr, quint32
|
|||
break;
|
||||
case Response::RespAccountNotActivated: {
|
||||
bool ok = false;
|
||||
QString token = QInputDialog::getText(this, tr("Account activation"), tr("Your account has not been activated yet.\nYou need to provide the activation token received in the activation email"), QLineEdit::Normal, QString(), &ok);
|
||||
QString token = QInputDialog::getText(this, tr("Account activation"), tr("Your account has not been activated yet.\nYou need to provide the activation token received in the activation email."), QLineEdit::Normal, QString(), &ok);
|
||||
if(ok && !token.isEmpty())
|
||||
{
|
||||
client->activateToServer(token);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue