Username format?


My NextCloud system is using Samba backend, which allows different username formats - ‘’ and ‘user’. NextCloud recognizes these as two different users. Is the a way to allow both forms of username and then collapse to single/same username, i.e. -> user?

Thank you

I ended up patching LoginController.php file:

- name: patch LoginController.php
    path: /var/www/html/nextcloud/core/Controller/LoginController.php
    insertafter: '^(.*)public function tryLogin'
    line: 'if(strpos($user, "@")) {$user = substr($user,0, strpos($user, "@"));}'