mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
Add TODO for not allowing double account creation
This commit is contained in:
@@ -159,6 +159,7 @@ class AccountManagerImpl implements AccountManager {
|
|||||||
@Override
|
@Override
|
||||||
public boolean createAccount(String name, String password) {
|
public boolean createAccount(String name, String password) {
|
||||||
synchronized (stateChangeLock) {
|
synchronized (stateChangeLock) {
|
||||||
|
// TODO don't allow creating another account if one already exists
|
||||||
LocalAuthor localAuthor = identityManager.createLocalAuthor(name);
|
LocalAuthor localAuthor = identityManager.createLocalAuthor(name);
|
||||||
identityManager.registerLocalAuthor(localAuthor);
|
identityManager.registerLocalAuthor(localAuthor);
|
||||||
SecretKey key = crypto.generateSecretKey();
|
SecretKey key = crypto.generateSecretKey();
|
||||||
|
|||||||
Reference in New Issue
Block a user