Infos:
- Zammad 6.5
- Third-Party-Login via Microsoft 365 enabled
Hi there,
i’ve deactivated the password login in Zammad to remove the login fields on the login page. Our users can login to zammad with their Microsoft 365-Account; only our Admin-User is a local user.
After that, i can’t login anymore with the Admin.
In the production.log:
app/controllers/users_controller.rb:364:in `admin_password_auth_send'
app/controllers/application_controller/handles_transitions.rb:16:in `handle_transaction'
E, [2025-06-12T13:24:31.489028#3956734-869080] ERROR -- : Error ID XK1GcK8h: Can't use Channel::Driver::Smtp: #<Net::SMTPAuthenticationError: Net::SMTPAuthenticationError>
I, [2025-06-12T13:24:31.489198#3956734-869080] INFO -- : Completed 500 Internal Server Error in 5968ms (Views: 0.1ms | ActiveRecord: 3.8ms (25 queries, 2 cached) | GC: 2.5ms)
I, [2025-06-12T13:24:31.497073#3956734-837720] INFO -- : Started GET "/" for 192.168.1.17 at 2025-06-12 13:24:31 +0200
I, [2025-06-12T13:24:31.498307#3956734-837720] INFO -- : Processing by InitController#index as HTML
I, [2025-06-12T13:24:31.501241#3956734-837720] INFO -- : Rendered layout layouts/application.html.erb (Duration: 0.4ms | GC: 0.0ms)
I, [2025-06-12T13:24:31.501718#3956734-837720] INFO -- : Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.7ms (6 queries, 1 cached) | GC: 0.0ms)
I, [2025-06-12T13:24:38.637893#3956807-196080] INFO -- : ProcessScheduledJobs running...
I, [2025-06-12T13:24:38.638843#3956807-196080] INFO -- : Running job thread for 'Process ticket escalations.' (Ticket.process_escalation) status is: sleep
I, [2025-06-12T13:24:38.638867#3956807-196080] INFO -- : Running job thread for 'Check channels.' (Channel.fetch) status is: sleep
I, [2025-06-12T13:24:38.638896#3956807-196080] INFO -- : Running job thread for 'Check 'Channel' streams.' (Channel.stream) status is: sleep
I, [2025-06-12T13:24:38.639732#3956807-196080] INFO -- : Running job thread for 'Execute planned jobs.' (Job.run) status is: sleep
I, [2025-06-12T13:24:40.232326#3956807-201820] INFO -- : execute Ticket.process_escalation (try_count 0)...
I, [2025-06-12T13:24:40.233327#3956807-201820] INFO -- : ended Ticket.process_escalation took: 0.00273858 seconds.
So, Zammad tries to send a mail with a one time password to the Admin-User, but failed (maybe, there are no credentials configured or something else). I can’t change the SMTP-error, so i thought, it would be easier to enable the password login via CLI, than fix the SMTP-send via the Webinterface.
Question:
How do i enable the password login via the rails console?
Thanks in advance,
Bastian