<p dir="auto">Redirect to <code class="notranslate">/offline</code> from <code class="notranslate">/oauth2/authorize</code> if the database is offline.</p>
<p dir="auto">Instead of this:<br>
<a href="https://github.com/user-attachments/assets/7b9511c5-459b-4b6b-aadf-c45fdb038e87">image.png (view on web)</a></p>
<p dir="auto">users will see this:<br>
<a href="https://github.com/user-attachments/assets/b1464660-eb53-4575-83ac-63b54720480f">image.png (view on web)</a></p>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #5400.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2741450456" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5400" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5400/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5400">#5400</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5406'>https://github.com/openstreetmap/openstreetmap-website/pull/5406</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5406/commits/5bb23f6f5f8fed81f1166a15344e44afa7fbb480" class="commit-link">5bb23f6</a>  Check if db is writable on oauth authorization pages</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5406/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5406/files#diff-eb8db9679a832ea753cdb89be6d0aaac12918e8ace5c83c28b68b74de21528d4">app/controllers/oauth2_authorizations_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5406/files#diff-bb46e859882ce085a07f3de140cd23f784784c885f95eb25abe3fe4085f11310">test/controllers/oauth2_authorizations_controller_test.rb</a>
    (14)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5406.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5406.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5406.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5406.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5406">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNGMPUEM725H5TA54L2F5OXXAVCNFSM6AAAAABTXGOBL2VHI2DSMVQWIX3LMV43ASLTON2WKOZSG42DGNRQGEYDCMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJZ6T2OJDATLUCBICL2F5OXXA5CNFSM6AAAAABTXGOBL2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKHCAHOI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5406</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5406",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5406",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>