Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Merge "add last_activity to session"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 7, 2015
2 parents c66f038 + 336d7a5 commit d5ba1a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openstack_auth/views.py
Expand Up @@ -11,6 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import time

import django
from django.conf import settings
Expand Down Expand Up @@ -106,6 +107,7 @@ def login(request, template_name=None, extra_context=None, **kwargs):
region_name = regions.get(region)
request.session['region_endpoint'] = region
request.session['region_name'] = region_name
request.session['last_activity'] = int(time.time())
return res


Expand Down

0 comments on commit d5ba1a2

Please sign in to comment.