Skip to content

Commit 1f96a9c

Browse files
committed
Merge branch 'release/2.1'
2 parents 1f37a77 + cb80906 commit 1f96a9c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
### General options ###
33
javaVersion=1.8
44
gradleVersion=3.5
5-
pluginVersion=2
5+
pluginVersion=2.1
66
# if set the 'idePath' then the version ignoring
77
# if 'sandboxDir' not set then use default sandbox directory (build/${product}-sandbox)
88
# if 'ideVersion' not set then use LATEST-EAP-SNAPSHOT

stepik-union/src/main/java/org/stepik/core/stepik/StepikAuthManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,12 @@ private static void setState(@NotNull StepikAuthState value) {
186186
long userId = getLastUser();
187187
setTokenInfo(userId, new TokenInfo());
188188
setLastUser(0);
189-
} else if (state == AUTH){
190-
Metrics.authenticate(SUCCESSFUL);
191189
}
192190

193191
if (oldState != state) {
192+
if (state == AUTH){
193+
Metrics.authenticate(SUCCESSFUL);
194+
}
194195
executor.execute(() ->
195196
listeners.forEach(listener -> listener.stateChanged(oldState, state)));
196197
}

0 commit comments

Comments
 (0)