global-functions: $GetRandom20CharHex: do not remove otp...

... as it is instantly invalid anyway.
This commit is contained in:
Christian Hesse 2021-06-28 00:26:20 +02:00
parent 7f2314d999
commit cfc400b3d5

View file

@ -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