mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Save html format if iOS client header is present
This commit is contained in:
parent
20c2bc34cd
commit
69cae258c9
1 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,9 @@ class ApplicationController < ActionController::Base
|
|||
return unless request.headers['X-Dawarich-Client']
|
||||
|
||||
session[:dawarich_client] = request.headers['X-Dawarich-Client']
|
||||
|
||||
# Force HTML format for iOS clients to ensure proper authentication flow
|
||||
request.format = :html if request.headers['X-Dawarich-Client'] == 'ios'
|
||||
end
|
||||
|
||||
def user_not_authorized
|
||||
|
|
|
|||
Loading…
Reference in a new issue