We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use ejabberd 16.03 on ubuntu 14.04
my mod_restful config:
port: 5289 module: ejabberd_http request_handlers: "/api": mod_restful
mod_restful: api: - path: ["admin"] module: mod_restful_admin params: key: "admin" allowed_commands: [register, unregister] - path: ["register"] module: mod_restful_register params: key: "admin"
First I register an account, that's ok. but when I want to change the password:
http://localhost:5289/api/register/change_password
the log tell me: [error] <0.18174.0> Processing throwed error undef trace: [{ejabberd_auth,check_password,[<<"abcdefg">>,<<"localhost">>,<<"123456">>],[]},{mod_restful_register,post_change_password,1,[{file,"src/mod_restful_register.erl"},{line,124}]},{mod_restful,handle_rest_request,5,[{file,"src/mod_restful.erl"},{line,193}]},{mod_restful,process,2,[{file,"src/mod_restful.erl"},{line,161}]},{ejabberd_http,process,5,[{file,"src/ejabberd_http.erl"},{line,363}]},{ejabberd_http,process_request,1,[{file,"src/ejabberd_http.erl"},{line,451}]},{ejabberd_http,process_header,2,[{file,"src/ejabberd_http.erl"},{line,291}]},{ejabberd_http,parse_headers,1,[{file,"src/ejabberd_http.erl"},{line,211}]}]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use ejabberd 16.03 on ubuntu 14.04
my mod_restful config:
listen:
mod_restful:
api:
-
path: ["admin"]
module: mod_restful_admin
params:
key: "admin"
allowed_commands: [register, unregister]
-
path: ["register"]
module: mod_restful_register
params:
key: "admin"
First I register an account, that's ok.
but when I want to change the password:
http://localhost:5289/api/register/change_password
the log tell me:
[error] <0.18174.0> Processing throwed error undef
trace: [{ejabberd_auth,check_password,[<<"abcdefg">>,<<"localhost">>,<<"123456">>],[]},{mod_restful_register,post_change_password,1,[{file,"src/mod_restful_register.erl"},{line,124}]},{mod_restful,handle_rest_request,5,[{file,"src/mod_restful.erl"},{line,193}]},{mod_restful,process,2,[{file,"src/mod_restful.erl"},{line,161}]},{ejabberd_http,process,5,[{file,"src/ejabberd_http.erl"},{line,363}]},{ejabberd_http,process_request,1,[{file,"src/ejabberd_http.erl"},{line,451}]},{ejabberd_http,process_header,2,[{file,"src/ejabberd_http.erl"},{line,291}]},{ejabberd_http,parse_headers,1,[{file,"src/ejabberd_http.erl"},{line,211}]}]
The text was updated successfully, but these errors were encountered: