##// END OF EJS Templates
base: drop usage of md5 for calculation of version hash.
marcink -
r2835:8eabdef2 default
parent child Browse files
Show More
@@ -42,7 +42,7 b' from rhodecode.lib.auth import AuthUser,'
42 42 from rhodecode.lib.exceptions import UserCreationError
43 43 from rhodecode.lib.utils import (password_changed, get_enabled_hook_classes)
44 44 from rhodecode.lib.utils2 import (
45 str2bool, safe_unicode, AttributeDict, safe_int, md5, aslist, safe_str)
45 str2bool, safe_unicode, AttributeDict, safe_int, sha1, aslist, safe_str)
46 46 from rhodecode.model.db import Repository, User, ChangesetComment
47 47 from rhodecode.model.notification import NotificationModel
48 48 from rhodecode.model.settings import VcsSettingsModel, SettingsModel
@@ -256,7 +256,7 b' class BasicAuth(AuthBasicAuthenticator):'
256 256
257 257
258 258 def calculate_version_hash(config):
259 return md5(
259 return sha1(
260 260 config.get('beaker.session.secret', '') +
261 261 rhodecode.__version__)[:8]
262 262
General Comments 0
You need to be logged in to leave comments. Login now