Switch to unified view

a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
...
...
88
    def login(self, user=None):
88
    def login(self, user=None):
89
        try:
89
        try:
90
            if user is None: user = self._login()
90
            if user is None: user = self._login()
91
            self.session['userid'] = user._id
91
            self.session['userid'] = user._id
92
            self.session.save()
92
            self.session.save()
93
            g.zarkov_event('login', user=user)
93
            return user
94
            return user
94
        except exc.HTTPUnauthorized:
95
        except exc.HTTPUnauthorized:
95
            self.logout()
96
            self.logout()
96
            raise
97
            raise
97
98