diff options
author | Mickaël Rémond <mickael.remond@process-one.net> | 2006-04-20 15:42:51 +0000 |
---|---|---|
committer | Mickaël Rémond <mickael.remond@process-one.net> | 2006-04-20 15:42:51 +0000 |
commit | 3cce56b9f88c2af2a85b2fc9f3ab4a685628d3fb (patch) | |
tree | 90a60c8bcf5e47c0d431b82eb2b8e5b1cfb6ed1b /src/ejabberd_auth_anonymous.erl | |
parent | * src/msgs/pl.msg: Updated (thanks to Andrzej Smyk) (diff) |
* src/ejabberd.cfg.example: Update of the example for anonymous.
Removed unnecessary parameter.
* src/ejabberd_auth_anonymous.erl: Removed unnecessary parameter
and bugfix.
SVN Revision: 534
Diffstat (limited to 'src/ejabberd_auth_anonymous.erl')
-rw-r--r-- | src/ejabberd_auth_anonymous.erl | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ejabberd_auth_anonymous.erl b/src/ejabberd_auth_anonymous.erl index 5b731d874..e63c66488 100644 --- a/src/ejabberd_auth_anonymous.erl +++ b/src/ejabberd_auth_anonymous.erl @@ -60,7 +60,7 @@ start(Host) -> %% Return true if anonymous is allowed for host or false otherwise allow_anonymous(Host) -> - lists:member(anonymous, ejabberd_auth:auth_modules(Host)). + lists:member(?MODULE, ejabberd_auth:auth_modules(Host)). %% Return true if anonymous mode is enabled and if anonymous protocol is SASL %% anonymous protocol can be: sasl_anon|login_anon|both @@ -192,8 +192,7 @@ get_vh_registered_users(_Server) -> %% Return password of permanent user or false for anonymous users get_password(User, Server) -> - DefaultPassword = get_default_password(Server), - get_password(User, Server, DefaultPassword). + get_password(User, Server, ""). get_password(User, Server, DefaultValue) -> case anonymous_user_exist(User, Server) of @@ -205,13 +204,6 @@ get_password(User, Server, DefaultValue) -> false end. -%% Return the default digest password from the config file -get_default_password(Host) -> - case ejabberd_config:get_local_option({anon_digest_password, Host}) of - undefined -> ""; - Pass -> Pass - end. - %% Returns true if the user exists in the DB or if an anonymous user is logged %% under the given name is_user_exists(User, Server) -> |