From ae9c8a7f12347aa9c3c59518e5d75691b623e1a3 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 11 Sep 2017 10:47:52 +0200 Subject: [PATCH] Don't invalidate the access_token when requesting one --- scripts/patrix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/patrix b/scripts/patrix index cc864af..270cf6b 100644 --- a/scripts/patrix +++ b/scripts/patrix @@ -467,7 +467,7 @@ sub del_room_alias { # Should we logout at the end ? Only if we used login and pass # If we used an access_token, we don't want it to be invalidated -my $must_logout = ($opt->{access_token}) ? 0 : 1; +my $must_logout = ($opt->{access_token} || $opt->{action} eq 'get-access-token') ? 0 : 1; # If we don't have an access token, we must get one now if (!$opt->{access_token}){