Add TODO for not allowing double account creation

This commit is contained in:
Torsten Grote
2018-09-13 18:19:15 -03:00
parent c90a72617e
commit a0d91da569

View File

@@ -159,6 +159,7 @@ class AccountManagerImpl implements AccountManager {
@Override
public boolean createAccount(String name, String password) {
synchronized (stateChangeLock) {
// TODO don't allow creating another account if one already exists
LocalAuthor localAuthor = identityManager.createLocalAuthor(name);
identityManager.registerLocalAuthor(localAuthor);
SecretKey key = crypto.generateSecretKey();