summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-09-08 05:28:28 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-09-08 05:28:28 +0200
commit936f186b6b767273fdc3c01f17311981c46e102c (patch)
tree624d6d9591df4cb869d1361f31c27c7a6a66350c /src/shared/reply
parentcbc16fc5033ae7bd49c053131ec842e8f3445041 (diff)
Send "disconnected" cmd if user failed cred check.
This (currently) does not apply to the actual login page, but just to any other action that requires being logged in.
Diffstat (limited to 'src/shared/reply')
-rw-r--r--src/shared/reply/shr_disconnected.erl25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/shared/reply/shr_disconnected.erl b/src/shared/reply/shr_disconnected.erl
new file mode 100644
index 0000000..e7b1813
--- /dev/null
+++ b/src/shared/reply/shr_disconnected.erl
@@ -0,0 +1,25 @@
+-module(shr_disconnected).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-export([generate/0]).
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%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