summaryrefslogtreecommitdiff
path: root/linaro_metrics/backends.py
blob: 12b168c73db3af13ed1dd2f267397beefe011b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
from crowdrest.backend import CrowdRestBackend


class LowerCaseCrowdBackend(CrowdRestBackend):
    def create_or_update_user(self, user_id):
        return super(LowerCaseCrowdBackend, self).create_or_update_user(
            user_id.lower())

    def authenticate(self, username=None, password=None):
        return super(LowerCaseCrowdBackend, self).authenticate(
            username.lower(), password)