Dream
6779951194
Fix mobile login "Record not found" for unseeded instances ( #916 )
...
* Auto-create mobile OAuth application when missing (#912 )
Self-hosted users who set up their instance without running `db:seed`
(or reset their database) got "Record not found" on mobile login because
`MobileDevice.shared_oauth_application` used `find_by!` which raises
when the "Sure Mobile" Doorkeeper application does not exist.
Switch to `find_or_create_by!` so the record is created transparently
on first use, matching the attributes from the seed file.
* Nice Claude Code suggestion
---------
Co-authored-by: Juan José Mata <jjmata@jjmata.com >
2026-02-06 18:04:29 +01:00
..
2026-02-01 23:48:54 +01:00
2026-01-30 20:44:25 +01:00
2026-01-08 18:23:34 +01:00
2026-01-21 22:56:39 +01:00
2026-01-21 22:56:39 +01:00
2026-01-07 15:59:04 +01:00
2026-01-07 15:59:04 +01:00
2026-01-22 22:23:09 +01:00
2026-02-06 18:04:03 +01:00
2026-01-30 12:29:46 +01:00
2026-01-18 15:11:34 +01:00
2026-01-18 15:11:34 +01:00
2026-02-06 18:04:03 +01:00
2026-02-03 14:20:34 +01:00
2026-01-21 22:56:39 +01:00
2026-01-23 22:12:02 +01:00
2026-01-22 22:23:09 +01:00
2026-01-09 13:03:40 +01:00
2026-01-12 15:35:14 -05:00
2026-02-01 23:48:54 +01:00
2026-01-23 00:53:24 +01:00
2026-01-09 19:38:04 +01:00
2026-01-22 20:37:07 +01:00
2026-01-22 20:37:07 +01:00
2026-01-22 20:37:07 +01:00
2026-01-24 11:16:26 +01:00
2026-01-10 20:11:00 +01:00
2026-01-24 11:16:26 +01:00
2026-02-06 18:04:03 +01:00
2026-02-06 00:00:04 +01:00
2026-01-27 15:45:50 +01:00
2026-01-05 22:11:47 +01:00
2026-01-20 07:44:12 +01:00
2026-01-16 12:34:06 +01:00
2026-01-22 22:23:09 +01:00
2026-01-23 00:28:17 +01:00
2026-01-23 08:55:34 +01:00
2026-01-16 21:04:10 +01:00
2026-02-01 23:48:54 +01:00
2026-01-20 17:51:36 -05:00
2026-01-22 15:25:43 +01:00
2026-01-07 15:59:04 +01:00
2026-02-03 15:45:25 +01:00
2026-01-23 22:05:28 +01:00
2025-12-24 00:15:53 +01:00
2026-01-21 22:10:15 +01:00
2026-02-04 23:58:09 +01:00
2026-01-10 16:39:18 +01:00
2026-02-01 18:59:12 +01:00
2026-02-04 23:40:01 +01:00
2026-02-03 15:45:25 +01:00
2026-02-04 23:40:01 +01:00
2026-02-03 15:45:25 +01:00
2026-01-21 22:56:39 +01:00
2026-01-22 20:37:07 +01:00
2026-01-23 22:05:28 +01:00
2026-02-03 15:45:25 +01:00
2026-02-01 23:48:54 +01:00
2026-02-06 14:11:46 +01:00
2026-01-09 19:38:04 +01:00
2026-01-21 17:16:51 +01:00
2026-02-04 23:58:09 +01:00
2026-01-23 12:54:55 +01:00
2026-01-30 20:44:25 +01:00
2026-01-10 20:26:08 +01:00
2026-01-16 21:04:10 +01:00
2026-01-11 23:58:51 +01:00
2026-01-19 15:44:49 +01:00
2026-02-06 16:14:42 +01:00
2026-01-23 22:05:28 +01:00
2026-01-23 22:05:28 +01:00
2026-02-03 15:45:25 +01:00
2026-02-04 23:40:01 +01:00
2026-02-03 15:45:25 +01:00
2026-01-10 16:39:18 +01:00
2026-02-06 18:04:29 +01:00
2026-01-03 17:56:42 -05:00
2026-02-03 15:45:25 +01:00
2026-02-04 23:58:09 +01:00
2026-01-24 11:16:26 +01:00
2026-02-03 15:45:25 +01:00
2026-01-22 20:37:07 +01:00
2026-01-10 16:39:18 +01:00
2026-01-08 15:20:14 +01:00
2026-01-27 15:45:50 +01:00
2026-01-23 22:05:28 +01:00
2026-01-26 09:46:20 +01:00
2026-01-23 22:05:28 +01:00
2026-02-03 15:45:25 +01:00
2026-02-04 23:40:01 +01:00
2026-02-03 15:45:25 +01:00
2026-01-03 17:56:42 -05:00
2026-02-06 18:04:03 +01:00
2026-02-06 18:04:03 +01:00
2026-01-23 18:55:51 +01:00
2026-01-16 21:04:10 +01:00
2026-01-20 00:01:55 +01:00
2026-01-16 12:34:06 +01:00
2026-01-26 10:17:28 +01:00
2026-01-12 15:35:14 -05:00
2026-02-03 15:45:25 +01:00