mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Make webadmin tests use different user for changepassword/unregister
Using username that is shared with other tests causes login problems in other places.
This commit is contained in:
parent
0508dce2ed
commit
6c52438128
@ -70,7 +70,7 @@ user_page(Config) ->
|
||||
?match({_, _}, binary:match(Body, <<"<title>ejabberd Web Admin">>)).
|
||||
|
||||
adduser(Config) ->
|
||||
User = ?config(user, Config),
|
||||
User = <<"webadmin-test">>,
|
||||
Server = ?config(server, Config),
|
||||
Password = ?config(password, Config),
|
||||
Body = make_query(
|
||||
@ -82,7 +82,7 @@ adduser(Config) ->
|
||||
?match({_, _}, binary:match(Body, <<"<a href='../user/">>)).
|
||||
|
||||
changepassword(Config) ->
|
||||
User = ?config(user, Config),
|
||||
User = <<"webadmin-test">>,
|
||||
Server = ?config(server, Config),
|
||||
Password = <<"newpassword-", (?config(password, Config))/binary>>,
|
||||
Body = make_query(
|
||||
@ -95,7 +95,7 @@ changepassword(Config) ->
|
||||
?match({_, _}, binary:match(Body, <<"<p class='result'>Submitted</p>">>)).
|
||||
|
||||
removeuser(Config) ->
|
||||
User = ?config(user, Config),
|
||||
User = <<"webadmin-test">>,
|
||||
Server = ?config(server, Config),
|
||||
Body = make_query(
|
||||
Config,
|
||||
|
Loading…
Reference in New Issue
Block a user