Browse Source

Added site name to persona login

pull/764/head
Armin Ronacher 12 years ago
parent
commit
23d8d66256
  1. 4
      examples/persona/static/persona.js
  2. 2
      examples/persona/templates/layout.html

4
examples/persona/static/persona.js

@ -2,7 +2,9 @@ $(function() {
/* convert the links into clickable buttons that go to the /* convert the links into clickable buttons that go to the
persona service */ persona service */
$('a.signin').on('click', function() { $('a.signin').on('click', function() {
navigator.id.request(); navigator.id.request({
siteName: 'Flask Persona Example'
});
return false; return false;
}); });

2
examples/persona/templates/layout.html

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<title>{% block title %}{% endblock %} | My Blog</title> <title>{% block title %}{% endblock %} | Flask Persona Example</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta http-equiv="X-UA-Compatible" content="IE=Edge">
<script src="{{ config.PERSONA_JS }}"></script> <script src="{{ config.PERSONA_JS }}"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>

Loading…
Cancel
Save