Merge branch 'empty_password'
This commit is contained in:
commit
a77dc13940
1 changed files with 16 additions and 6 deletions
|
|
@ -1100,6 +1100,15 @@ wallet (wallet_a)
|
||||||
{
|
{
|
||||||
rai::transaction transaction (this->wallet.wallet_m->store.environment, nullptr, true);
|
rai::transaction transaction (this->wallet.wallet_m->store.environment, nullptr, true);
|
||||||
if (this->wallet.wallet_m->store.valid_password (transaction))
|
if (this->wallet.wallet_m->store.valid_password (transaction))
|
||||||
|
{
|
||||||
|
if (new_password->text ().isEmpty())
|
||||||
|
{
|
||||||
|
new_password->clear ();
|
||||||
|
new_password->setPlaceholderText ("Empty Password - try again: New password");
|
||||||
|
retype_password->clear ();
|
||||||
|
retype_password->setPlaceholderText ("Empty Password - try again: Retype password");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (new_password->text () == retype_password->text ())
|
if (new_password->text () == retype_password->text ())
|
||||||
{
|
{
|
||||||
|
|
@ -1114,6 +1123,7 @@ wallet (wallet_a)
|
||||||
retype_password->setPlaceholderText ("Password mismatch");
|
retype_password->setPlaceholderText ("Password mismatch");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
QObject::connect (change_rep, &QPushButton::released, [this] ()
|
QObject::connect (change_rep, &QPushButton::released, [this] ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue