This file is indexed.

/usr/share/doc/python-django-allauth/html/views.html is in python-django-allauth-doc 0.35.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Views &#8212; django-allauth 0.32.0 documentation</title>
    <link rel="stylesheet" href="_static/classic.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '0.32.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true,
        SOURCELINK_SUFFIX: '.txt'
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Templates" href="templates.html" />
    <link rel="prev" title="Signals" href="signals.html" /> 
  </head>
  <body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="templates.html" title="Templates"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="signals.html" title="Signals"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">django-allauth 0.32.0 documentation</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="views">
<h1>Views<a class="headerlink" href="#views" title="Permalink to this headline"></a></h1>
<div class="section" id="login-account-login">
<h2>Login (<code class="docutils literal"><span class="pre">account_login</span></code>)<a class="headerlink" href="#login-account-login" title="Permalink to this headline"></a></h2>
<p>Users login via the <code class="docutils literal"><span class="pre">allauth.account.views.LoginView</span></code> view over at
<code class="docutils literal"><span class="pre">/accounts/login/</span></code> (URL name <code class="docutils literal"><span class="pre">account_login</span></code>). When users attempt to login
while their account is inactive (<code class="docutils literal"><span class="pre">user.is_active</span></code>) they are presented with the
<code class="docutils literal"><span class="pre">account/account_inactive.html</span></code> template.</p>
</div>
<div class="section" id="signup-account-signup">
<h2>Signup (<code class="docutils literal"><span class="pre">account_signup</span></code>)<a class="headerlink" href="#signup-account-signup" title="Permalink to this headline"></a></h2>
<p>Users sign up via the <code class="docutils literal"><span class="pre">allauth.account.views.SignupView</span></code> view over at
<code class="docutils literal"><span class="pre">/accounts/signup/</span></code> (URL name <code class="docutils literal"><span class="pre">account_signup</span></code>).</p>
</div>
<div class="section" id="logout-account-logout">
<h2>Logout (<code class="docutils literal"><span class="pre">account_logout</span></code>)<a class="headerlink" href="#logout-account-logout" title="Permalink to this headline"></a></h2>
<p>The logout view (<code class="docutils literal"><span class="pre">allauth.account.views.LogoutView</span></code>) over at
<code class="docutils literal"><span class="pre">/accounts/logout/</span></code> (URL name <code class="docutils literal"><span class="pre">account_logout</span></code>) requests for confirmation
before logging out. The user is logged out only when the confirmation is
received by means of a POST request.</p>
<p>If you are wondering why, consider what happens when a malicious user
embeds the following image in a post:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="o">&lt;</span><span class="n">img</span> <span class="n">src</span><span class="o">=</span><span class="s2">&quot;http://example.com/accounts/logout/&quot;</span><span class="o">&gt;</span>
</pre></div>
</div>
<p>For this and more background information on the subject, see:</p>
<ul class="simple">
<li><a class="reference external" href="https://code.djangoproject.com/ticket/15619">https://code.djangoproject.com/ticket/15619</a></li>
<li><a class="reference external" href="http://stackoverflow.com/questions/3521290/logout-get-or-post">http://stackoverflow.com/questions/3521290/logout-get-or-post</a></li>
</ul>
<p>If you insist on having logout on GET, then please consider adding a
bit of Javascript to automatically turn a click on a logout link into
a POST. As a last resort, you can set <code class="docutils literal"><span class="pre">ACCOUNT_LOGOUT_ON_GET</span></code> to
<code class="docutils literal"><span class="pre">True</span></code>.</p>
</div>
<div class="section" id="password-management">
<h2>Password Management<a class="headerlink" href="#password-management" title="Permalink to this headline"></a></h2>
<p>Authenticated users can manage their password account using the
<code class="docutils literal"><span class="pre">allauth.account.views.PasswordSetView</span></code> and
<code class="docutils literal"><span class="pre">allauth.account.views.PasswordChangeView</span></code> views, over at
<code class="docutils literal"><span class="pre">/accounts/password/set/</span></code> respectively <code class="docutils literal"><span class="pre">/accounts/password/change/</span></code> (URL names
<code class="docutils literal"><span class="pre">account_set_password</span></code> and <code class="docutils literal"><span class="pre">account_change_password</span></code> respectively).</p>
<p>Users are redirected between these views, according to whether or not
they have setup a password (<code class="docutils literal"><span class="pre">user.has_usable_password()</span></code>).  Typically,
when users signup via a social provider they will not have a password
set.</p>
</div>
<div class="section" id="password-reset-account-reset-password">
<h2>Password Reset (<code class="docutils literal"><span class="pre">account_reset_password</span></code>)<a class="headerlink" href="#password-reset-account-reset-password" title="Permalink to this headline"></a></h2>
<p>Users can request a password reset using the
<code class="docutils literal"><span class="pre">allauth.account.views.PasswordResetView</span></code> view over at
<code class="docutils literal"><span class="pre">/accounts/password/reset/</span></code> (URL name <code class="docutils literal"><span class="pre">account_reset_password</span></code>).  An e-mail
will be sent containing a reset link pointing to <code class="docutils literal"><span class="pre">PasswordResetFromKeyView</span></code>
view.</p>
</div>
<div class="section" id="e-mails-management-account-email">
<h2>E-mails Management (<code class="docutils literal"><span class="pre">account_email</span></code>)<a class="headerlink" href="#e-mails-management-account-email" title="Permalink to this headline"></a></h2>
<p>Users manage the e-mail addresses tied to their account using the
<code class="docutils literal"><span class="pre">allauth.account.views.EmailView</span></code> view over at <code class="docutils literal"><span class="pre">/accounts/email/</span></code> (URL name
<code class="docutils literal"><span class="pre">account_email</span></code>). Here, users can add (and verify) e-mail addresses, remove
e-mail addresses, and choose a new primary e-mail address.</p>
</div>
<div class="section" id="e-mail-verification">
<h2>E-mail Verification<a class="headerlink" href="#e-mail-verification" title="Permalink to this headline"></a></h2>
<p>Depending on the setting <code class="docutils literal"><span class="pre">ACCOUNT_EMAIL_VERIFICATION</span></code>, a verification
e-mail is sent pointing to the
<code class="docutils literal"><span class="pre">allauth.account.views.ConfirmEmailView</span></code> view.</p>
<p>The setting <code class="docutils literal"><span class="pre">ACCOUNT_CONFIRM_EMAIL_ON_GET</span></code> determines whether users
have to manually confirm the address by submiting a confirmation form,
or whether the address is automatically confirmed by a mere GET
request.</p>
</div>
<div class="section" id="social-connections-socialaccount-connections">
<h2>Social Connections (<code class="docutils literal"><span class="pre">socialaccount_connections</span></code>)<a class="headerlink" href="#social-connections-socialaccount-connections" title="Permalink to this headline"></a></h2>
<p>The <code class="docutils literal"><span class="pre">allauth.socialaccount.views.ConnectionsView</span></code> view over at
<code class="docutils literal"><span class="pre">/accounts/social/connections/</span></code> (URL name <code class="docutils literal"><span class="pre">socialaccount_connections</span></code>) allows
users to manage the social accounts tied to their local account.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Views</a><ul>
<li><a class="reference internal" href="#login-account-login">Login (<code class="docutils literal"><span class="pre">account_login</span></code>)</a></li>
<li><a class="reference internal" href="#signup-account-signup">Signup (<code class="docutils literal"><span class="pre">account_signup</span></code>)</a></li>
<li><a class="reference internal" href="#logout-account-logout">Logout (<code class="docutils literal"><span class="pre">account_logout</span></code>)</a></li>
<li><a class="reference internal" href="#password-management">Password Management</a></li>
<li><a class="reference internal" href="#password-reset-account-reset-password">Password Reset (<code class="docutils literal"><span class="pre">account_reset_password</span></code>)</a></li>
<li><a class="reference internal" href="#e-mails-management-account-email">E-mails Management (<code class="docutils literal"><span class="pre">account_email</span></code>)</a></li>
<li><a class="reference internal" href="#e-mail-verification">E-mail Verification</a></li>
<li><a class="reference internal" href="#social-connections-socialaccount-connections">Social Connections (<code class="docutils literal"><span class="pre">socialaccount_connections</span></code>)</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="signals.html"
                        title="previous chapter">Signals</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="templates.html"
                        title="next chapter">Templates</a></p>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/views.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="templates.html" title="Templates"
             >next</a> |</li>
        <li class="right" >
          <a href="signals.html" title="Signals"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="index.html">django-allauth 0.32.0 documentation</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
        &#169; Copyright 2018, Raymond Penners.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.6.
    </div>
  </body>
</html>