diff --git a/pagure/templates/user_settings.html b/pagure/templates/user_settings.html
index 8cdd62c..d572e9d 100644
--- a/pagure/templates/user_settings.html
+++ b/pagure/templates/user_settings.html
@@ -83,7 +83,8 @@
diff --git a/pagure/ui/app.py b/pagure/ui/app.py
index 82759de..319e4cd 100644
--- a/pagure/ui/app.py
+++ b/pagure/ui/app.py
@@ -762,7 +762,7 @@ def ssh_hostkey():
@APP.route('/settings/token/new/', methods=('GET', 'POST'))
@APP.route('/settings/token/new', methods=('GET', 'POST'))
@login_required
-def add_user_token():
+def add_api_user_token():
""" Create an user token (not project specific).
"""
if admin_session_timedout():
diff --git a/tests/test_pagure_flask_ui_app.py b/tests/test_pagure_flask_ui_app.py
index a9acd72..e04d64a 100644
--- a/tests/test_pagure_flask_ui_app.py
+++ b/tests/test_pagure_flask_ui_app.py
@@ -703,8 +703,8 @@ class PagureFlaskApptests(tests.Modeltests):
@patch('pagure.lib.notify.send_email')
@patch('pagure.ui.app.admin_session_timedout')
- def test_add_user_email(self, ast, send_email):
- """ Test the add_user_email endpoint. """
+ def test_add_api_user_email(self, ast, send_email):
+ """ Test the add_api_user_email endpoint. """
send_email.return_value = True
ast.return_value = False
self.test_new_project()