Rocket.chat: [Feature Request] disable password login

Created on 13 Jul 2016  路  4Comments  路  Source: RocketChat/Rocket.Chat

I hope there will be a switch to control whether users can login in by username and password, if this switch is on, then users can only login with cas/oauth .

Most helpful comment

Just to have this documented somewhere: if you have locked out yourself by disabling that option (because you misinterpreted it), it is possible to re-enable this via REST

curl http://localhost:3000/api/v1/login  -d "username=USERNAME&password=PASSWORD"
// get you user-id and auth-token

curl -H "X-Auth-Token: LOGIN-TOKEN"  -H "X-User-Id: SOME-ID" -H "Content-type:application/json"  http://localhost:3000/api/v1/settings/Accounts_ShowFormLogin  -d '{ "value": true }'

All 4 comments

its already in, admin > account> Show form-based Login

thanks

Just to have this documented somewhere: if you have locked out yourself by disabling that option (because you misinterpreted it), it is possible to re-enable this via REST

curl http://localhost:3000/api/v1/login  -d "username=USERNAME&password=PASSWORD"
// get you user-id and auth-token

curl -H "X-Auth-Token: LOGIN-TOKEN"  -H "X-User-Id: SOME-ID" -H "Content-type:application/json"  http://localhost:3000/api/v1/settings/Accounts_ShowFormLogin  -d '{ "value": true }'

@MartinSchoeler maybe we should add this to the docs?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

royalaid picture royalaid  路  3Comments

lunitic picture lunitic  路  3Comments

sta-szek picture sta-szek  路  3Comments

tanc picture tanc  路  3Comments

mattlin picture mattlin  路  3Comments