You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by kl...@apache.org on 2015/08/10 21:46:37 UTC

[11/15] couchdb-peruser git commit: Handle `couchdb_peruser` config changes

Handle `couchdb_peruser` config changes


Project: http://git-wip-us.apache.org/repos/asf/couchdb-peruser/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-peruser/commit/59605188
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-peruser/tree/59605188
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-peruser/diff/59605188

Branch: refs/heads/master
Commit: 59605188af5ec4d37b4ef6a17923b5cfa15c5c82
Parents: 0dfee37
Author: Klaus Trainer <kl...@posteo.de>
Authored: Mon Aug 10 17:51:06 2015 +0200
Committer: Klaus Trainer <kl...@posteo.de>
Committed: Mon Aug 10 17:51:06 2015 +0200

----------------------------------------------------------------------
 src/couchdb_peruser.erl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-peruser/blob/59605188/src/couchdb_peruser.erl
----------------------------------------------------------------------
diff --git a/src/couchdb_peruser.erl b/src/couchdb_peruser.erl
index bdcf9b6..2abb56c 100644
--- a/src/couchdb_peruser.erl
+++ b/src/couchdb_peruser.erl
@@ -50,6 +50,9 @@ init([]) ->
 handle_config_change("couch_httpd_auth", "authentication_db", _Value, _Persist, State) ->
    gen_server:cast(State, stop),
    remove_handler;
+handle_config_change("couchdb_peruser", _Key, _Value, _Persist, State) ->
+   gen_server:cast(State, stop),
+   remove_handler;
 handle_config_change(_Section, _Key, _Value, _Persist, State) ->
     {ok, State}.