<p></p>
<p>I'm currently also in need of a dummy user account, because I cannot easily create it via the web interface since the server is running in a docker instance on Github actions.</p>
<p>I first tried the following approach which is a modified version from this issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="833682053" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3136" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3136/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3136">#3136</a></p>
<pre><code>bundle exec rails runner 'pw_hash = PasswordHash.create("test.user@osm.org")
          admin = User.find_or_create_by(
            :email => "test.user@osm.org",
            :email_valid => true,
            :display_name => "My New User Name",
            :status => "confirmed",
            :terms_seen => true,
            :terms_agreed => Time.now.getutc,
            :data_public => true,
            :pass_crypt => pw_hash
          )
          admin.save!'
</code></pre>
<p>But when trying this on my local server I cannot login via the website (server <a href="https://github.com/openstreetmap/openstreetmap-website/files/6682559/log.txt">log.txt</a>)<br>
I'm pretty sure I'm using the <code>PasswordHash.create()</code> function the wrong way, because in the official code it is only used for <code>pass_salt</code>.</p>
<p>In your approach the user name (and password?) seems to be generated and thus (kind of) unknown. For my use case it would be nice to have a fixed user account, with known name and password.</p>
<p>Thanks in advance.</p>
<hr>
<p>My use case:<br>
Set up automated testing for an OSM API implementation. I decided against using the dev server (<a href="https://master.apis.dev.openstreetmap.org/" rel="nofollow">https://master.apis.dev.openstreetmap.org/</a>) because the credentials will be publicly available on Github. I also don't want to endlessly pollute the server.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3101#issuecomment-864569577">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLP242HXH32COJHIDCTTTYAYBANCNFSM4XYPNKVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLLIWLEC3PWONVODF53TTYAYBA5CNFSM4XYPNKVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGOEER2I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3101#issuecomment-864569577",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3101#issuecomment-864569577",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>