ajax - Tricky workflow from public page to restricted page with specific conditions -
i have public page data-request = onclaim button. a user can use button whether logged or not when user "claims" page, if conditions fulfilled, database must updated , specific restricted access page have displayed new updated datas. if conditions not met, user stay on public page warning message. to know if these conditions met, user must logged in (using account or creating new one) note: when restricted page displayed other way button. no specific data updated hard explain, best ! please, how implement workflow elegantly (or not)? development environment: october 419 rainlab user plugin debugbar 1.0.8 plugin sweet alert 1.1.0 plugin i tried tricks according xy problem , prefer don't talk about