Change default secret algorithm to sha256

develop
Ensar Sarajčić 2018-12-06 12:16:52 +01:00
parent d0dc674571
commit c11e0e46b4
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class Device(db.Model):
self.name = name
self.configuration = configuration
self.device_type_id = device_type
self.secret_algorithm = 'sha512'
self.secret_algorithm = 'sha256'
self.device_secret = token_urlsafe(32)
def save(self):