Verified Commit 180395c8 authored by Jakob Moser's avatar Jakob Moser
Browse files

Return None instead of False

parent 29dbaecd
Loading
Loading
Loading
Loading
+1 −1
Changes for portal/model/User.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class User(Base):
        """
        directory = LdapDirectory.get_the_one()
        if not directory.is_valid(name, password):
            return False
            return None

        # There exists a user with that name and password. Let's see if they are already in the database:
        user = cls.get_by_name(name)