diff options
author | icebaker <icebaker@proton.me> | 2023-12-02 17:50:45 -0300 |
---|---|---|
committer | icebaker <icebaker@proton.me> | 2023-12-02 17:50:45 -0300 |
commit | a36f0480eb0f6f9fd488bc0e58b0f10a9d8b7da9 (patch) | |
tree | 3ad607fbb503b44ff588e085c40f92211dde0d78 /controllers | |
parent | dfbf1b501be2d547f70a9ec9bbaff7e0d2705151 (diff) |
bump to 1.0.1
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/security.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/controllers/security.rb b/controllers/security.rb index c1180f2..cbccf47 100644 --- a/controllers/security.rb +++ b/controllers/security.rb @@ -18,11 +18,10 @@ module NanoBot password = 'UNSAFE' unless password && password != '' { - encryption: ( + encryption: Components::Crypto.encrypt('SAFE') != 'SAFE' && - Components::Crypto.encrypt('SAFE') != Components::Crypto.encrypt('SAFE') && - Components::Crypto.decrypt(Components::Crypto.encrypt('SAFE')) == 'SAFE' - ), + Components::Crypto.encrypt('SAFE') != Components::Crypto.encrypt('SAFE') && + Components::Crypto.decrypt(Components::Crypto.encrypt('SAFE')) == 'SAFE', password: password != 'UNSAFE' } end |