mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-17 15:21:21 +01:00
Merge pull request #3457 from matrix-org/t3chguy/sso_device_name
Use same initial device name rules for SSO login as password login
This commit is contained in:
commit
f356b8a3c9
@ -286,7 +286,10 @@ export default createReactClass({
|
|||||||
// the first thing to do is to try the token params in the query-string
|
// the first thing to do is to try the token params in the query-string
|
||||||
// if the session isn't soft logged out (ie: is a clean session being logged in)
|
// if the session isn't soft logged out (ie: is a clean session being logged in)
|
||||||
if (!Lifecycle.isSoftLogout()) {
|
if (!Lifecycle.isSoftLogout()) {
|
||||||
Lifecycle.attemptTokenLogin(this.props.realQueryParams).then((loggedIn) => {
|
Lifecycle.attemptTokenLogin(
|
||||||
|
this.props.realQueryParams,
|
||||||
|
this.props.defaultDeviceDisplayName,
|
||||||
|
).then((loggedIn) => {
|
||||||
if (loggedIn) {
|
if (loggedIn) {
|
||||||
this.props.onTokenLoginCompleted();
|
this.props.onTokenLoginCompleted();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user