Fix user management
This commit is contained in:
parent
0ea4c62731
commit
98583e737f
|
|
@ -116,7 +116,7 @@ impl<A: ToSocketAddrs> UserManagementRoutes for crate::Server<A> {
|
||||||
Handler: Clone + Send + Sync + 'static + Fn(Request, RegisteredUser<UserData>) -> F,
|
Handler: Clone + Send + Sync + 'static + Fn(Request, RegisteredUser<UserData>) -> F,
|
||||||
F: Send + Sync + 'static + Future<Output = Result<Response>>
|
F: Send + Sync + 'static + Future<Output = Result<Response>>
|
||||||
{
|
{
|
||||||
self.add_route(path, move|request| {
|
self.add_route(path, move|request: Request| {
|
||||||
let handler = handler.clone();
|
let handler = handler.clone();
|
||||||
async move {
|
async move {
|
||||||
Ok(match request.user::<UserData>()? {
|
Ok(match request.user::<UserData>()? {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue