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


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -