Fixed: Password was not stored after creating a new location

This commit is contained in:
Konrad 2017-04-20 18:09:19 +02:00
parent 4a0b51ce2d
commit 9600359bdb

View File

@ -456,6 +456,7 @@ void RsControlModule::handleCreateLocation(Request &req, Response &resp)
// give the password to the password callback // give the password to the password callback
{ {
RsStackMutex stack(mDataMtx); // ********** LOCKED ********** RsStackMutex stack(mDataMtx); // ********** LOCKED **********
mPassword = pgp_password;
mFixedPassword = pgp_password; mFixedPassword = pgp_password;
} }
bool ssl_ok = RsAccounts::GenerateSSLCertificate(pgp_id, "", ssl_name, "", hidden_port!=0, ssl_password, ssl_id, err_string); bool ssl_ok = RsAccounts::GenerateSSLCertificate(pgp_id, "", ssl_name, "", hidden_port!=0, ssl_password, ssl_id, err_string);