account: register username
This patch:
- set account details right after name registration ended
to save changes in .yml file.
- remove password field, as now password is not used to register
an account.
Change-Id: Icb69844edb36aefc61c4fe257470a23aa1424c4d
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
diff --git a/src/AccRingGeneralVC.mm b/src/AccRingGeneralVC.mm
index 17d816c..6e8924d 100644
--- a/src/AccRingGeneralVC.mm
+++ b/src/AccRingGeneralVC.mm
@@ -258,6 +258,8 @@
buttonRegisterWidthConstraint.constant = 0.0;
[registerNameButton setHidden:YES];
[registeredNameField setStringValue:name];
+ lrc::api::account::ConfProperties_t accountProperties = self.accountModel->getAccountConfig(self.selectedAccountID);
+ self.accountModel->setAccountConfig(self.selectedAccountID, accountProperties);
}
#pragma mark - NSTextFieldDelegate delegate methods