Switch to unified view

a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
...
...
311
        if ea is None: return None
311
        if ea is None: return None
312
        return ea.claimed_by_user()
312
        return ea.claimed_by_user()
313
313
314
    @classmethod
314
    @classmethod
315
    def by_username(cls, name):
315
    def by_username(cls, name):
316
        if not name:
317
            return cls.anonymous()
316
        return plugin.AuthenticationProvider.get(request).by_username(name)
318
        return plugin.AuthenticationProvider.get(request).by_username(name)
317
319
318
    @classmethod
320
    @classmethod
319
    def by_display_name(cls, name, substring=True):
321
    def by_display_name(cls, name, substring=True):
320
        return plugin.UserPreferencesProvider.get().find_by_display_name(name, substring)
322
        return plugin.UserPreferencesProvider.get().find_by_display_name(name, substring)