Comments (2)
I have seen a similar behavior, where the login with email fails because the $users = $this->userManager->getByEmail($user);
in LoginController::tryLogin() fails (if (count($users) === 1) {
), because 2 elements are returned and it is therefore not unique (one seems to be an additional empty element):
Array
(
[0] =>
[1] => OC\User\User Object
(...)
)
from user_sql.
I looked at:
https://github.com/nextcloud/server/blob/master/core/Controller/LoginController.php#tryLogin
And the userId is taken from:
$users = $this->userManager->getByEmail($user);
->
$userIds = $this->config->getUsersForUserValue('settings', 'email', $email);
So I think if you want to login with email - first the email has to be synchronized with nextcloud, because is is not taken from external database. Also the email has to be unique.
// list emails in db
select * from oc_preferences where appid = 'settings' and configkey = 'email';
// list emails count in db
select count(configvalue), configvalue from oc_preferences where appid = 'settings' and configkey = 'email' group by configvalue order by 1 desc;
from user_sql.
Related Issues (20)
- Feature request: add delegated admin settings
- Using the "Default Group" does not work -- SQL queries missing "DISTINCT" option
- Problem Authentication Woltlab 5.4 -> Nextcloud
- Users not visible in App "Deck" HOT 1
- UID / GID fields don't allow integers HOT 1
- Hooking for Talk Group sync? HOT 3
- Group functionality - Joomla & Nextcloud - i dont get it HOT 1
- Matching good users when multiple nextcloud instances
- Feature request: Drupal Organic Groups synchronisation
- sql filtering unwanted data
- Nextcloud 24 support HOT 11
- confusion between uid and name HOT 1
- Xenforo
- Migrating from user_sql to other authentication, preferably nextcloud internal user db HOT 1
- Hostname can only be localhost
- Support Nextcloud 25 HOT 3
- Clean distinction between UID database column and USERNAME database column? HOT 1
- Support NC25 - NC27 + bug fixing. HOT 8
- getName() method does not exist for class Doctrine\DBAL\Driver\PDO\MySQL\Driver HOT 1
- Error NC29 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from user_sql.