Skip to content
New issue

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

can't change password #31

Open
ginuerzh opened this issue Apr 13, 2016 · 0 comments
Open

can't change password #31

ginuerzh opened this issue Apr 13, 2016 · 0 comments

Comments

@ginuerzh
Copy link

I use ejabberd 16.03 on ubuntu 14.04

my mod_restful config:

listen:

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}]}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant