-
Notifications
You must be signed in to change notification settings - Fork 32
Conversation
Deploying matrix-authentication-service-docs with Cloudflare Pages
|
4d6732b
to
b2dbcb0
Compare
b2dbcb0
to
6dd674b
Compare
f382846
to
cc10495
Compare
d8406c5
to
df12feb
Compare
df12feb
to
fa35020
Compare
.lookup(*id) | ||
.await? | ||
.ok_or(RouteError::NotFound(*id))?; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it intended that we don't apply any complexity limits on this API?
also, it may be worth checking the password isn't empty either. I feel like that is dodgy enough to protect against
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was assuming that because this is the admin API, it should just accept it? Synapse does that (and I don't think it checks for empty passwords either)
But I'd be happy to make it check here and have a skip_password_check
parameter or something similar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up checking the complexity and adding the flag
fa35020
to
4dbb5eb
Compare
0be3cb8
to
9551f55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than one minor thing SGTM thanks :)
.is_password_complex_enough(¶ms.password) | ||
.unwrap_or(false) | ||
{ | ||
return Err(RouteError::PasswordTooWeak); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will give a PasswordTooWeak
error code if the password manager is disabled, which could be a bit misleading, should we have an error code just for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you're right! Did that in 87482b4
87482b4
to
aec9653
Compare
aec9653
to
2ade8c2
Compare
This adds an API to set the password of a user