Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set/update auth_mode #149

Open
hmarth opened this issue Jan 18, 2024 · 0 comments
Open

Cannot set/update auth_mode #149

hmarth opened this issue Jan 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hmarth
Copy link

hmarth commented Jan 18, 2024

The scenario SCENARIO_EDIT_ADMIN in the User model does not allow to set (on user creation) or update the field auth_mode.
Therefore it is not possible to set auth_mode via the API.

$scenarios[self::SCENARIO_EDIT_ADMIN] = ['username', 'email', 'status', 'visibility', 'language', 'tagsField'];

Possible solution: set auth_mode like authclient_id in ApiUser load function:

$this->user->authclient_id = $this->authclient_id;
$this->user->auth_mode = $data['auth_mode'];
@luke- luke- added the enhancement New feature or request label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants