MBBSEmu icon indicating copy to clipboard operation
MBBSEmu copied to clipboard

RLogin should support auto-account creation

Open paladine opened this issue 4 years ago • 1 comments

Upon initial Rlogin connection, if the user doesn't exist, we should support auto creating the accounts, using the default creation key set defined the config file.

It would be useful to have a config option that enables this auto-rlogin-account-creation feature, defaulting to true.

paladine avatar Nov 05 '21 14:11 paladine

As part of this we could remove the checks for haskey(), haskeym() and uidkey() (in majorbbs.cs) for missing rlogin user

            //If the user isnt registered on the system, most likely RLOGIN -- so apply the default keys
            if (_accountRepository.GetAccountByUsername(userName) == null)
            {
                keys = _configuration.DefaultKeys;
            }
            else
            {
                var accountKeys = _accountKeyRepository.GetAccountKeysByUsername(userName);
                keys = accountKeys.Select(x => x.accountKey);
            }
           ```

tuday2 avatar Nov 05 '21 15:11 tuday2