diff --git a/pagure/flask_app.py b/pagure/flask_app.py
index 8c31e08..d2829d6 100644
--- a/pagure/flask_app.py
+++ b/pagure/flask_app.py
@@ -13,6 +13,7 @@ from __future__ import unicode_literals, absolute_import
import datetime
import gc
import logging
+import string
import time
import os
@@ -244,6 +245,9 @@ def set_request():
flask.g.main_app = flask.current_app
flask.g.version = pagure.__version__
flask.g.confirmationform = pagure.forms.ConfirmationForm()
+ flask.g.nonce = pagure.lib.login.id_generator(
+ size=25, chars=string.ascii_letters + string.digits
+ )
flask.g.issues_enabled = pagure_config.get("ENABLE_TICKETS", True)
diff --git a/pagure/templates/_render_repo.html b/pagure/templates/_render_repo.html
index 0e76bba..88ab963 100644
--- a/pagure/templates/_render_repo.html
+++ b/pagure/templates/_render_repo.html
@@ -325,7 +325,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{theme.js_imports()}}
-
{% endblock %}
@@ -176,7 +176,7 @@ $('[data-toggle="tooltip"]').tooltip({placement : 'bottom'});
{% if config['FEDMENU_URL'] %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-