summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authoricebaker <icebaker@proton.me>2023-12-02 17:50:45 -0300
committericebaker <icebaker@proton.me>2023-12-02 17:50:45 -0300
commita36f0480eb0f6f9fd488bc0e58b0f10a9d8b7da9 (patch)
tree3ad607fbb503b44ff588e085c40f92211dde0d78 /controllers
parentdfbf1b501be2d547f70a9ec9bbaff7e0d2705151 (diff)
bump to 1.0.1
Diffstat (limited to 'controllers')
-rw-r--r--controllers/security.rb7
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