Skip to content

Commit 035d43f

Browse files
Disable linked users in IDP
1 parent 430abd1 commit 035d43f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/models/authenticator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ class PasswordAuthenticator extends Authenticator {
144144
error.statusCode = 400
145145
throw error
146146
}
147-
147+
if (foundUser.link) {
148+
throw new Error('Linked users not currently supported, sorry (external WebID without TLS?)')
149+
}
148150
return this.userStore.matchPassword(foundUser, this.password)
149151
})
150152
.then(validUser => {

0 commit comments

Comments
 (0)