aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-06-28 00:26:20 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-06-28 21:33:13 +0200
commitcfc400b3d5dd200644673f4dc39636e231979724 (patch)
treed5ab78c229f0e68eea8988cdf07a3210b2e31a46 /global-functions
parent7f2314d9995dc8bb8658d7c4b90045d087e07d0f (diff)
global-functions: $GetRandom20CharHex: do not remove otp...
... as it is instantly invalid anyway.
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions4
1 files changed, 1 insertions, 3 deletions
diff --git a/global-functions b/global-functions
index da718f3..14b045e 100644
--- a/global-functions
+++ b/global-functions
@@ -405,9 +405,7 @@
# generate random 20 chars hex (0-9 and a-f)
:set GetRandom20CharHex do={
- :local Random ([ / certificate scep-server otp generate minutes-valid=0 as-value ]->"password");
- / certificate scep-server otp remove [ find where password=$Random ];
- :return $Random;
+ :return ([ / certificate scep-server otp generate minutes-valid=0 as-value ]->"password");
}
# generate random number