spherulitic / xerafin3

Xerafin Word Study System
1 stars 0 forks source link

Establish default user preferences #44

Closed spherulitic closed 1 year ago

spherulitic commented 2 years ago

Blocked by #8 May be OBE by #45 The items previously stored in user_prefs can all be stored as user attributes in keycloak, probably. user_lexicon_master also

spherulitic commented 2 years ago

If default user preference attributes can be established during new user creation (#45), then we can move cardbox validation to the cardbox service and shut this one down.

spherulitic commented 1 year ago

Attributes to set on user create: #

studyOrderIndex 0

closet 20

newWordsAtOnce 4

reschedHrs 24

showNumSolutions 'Y' <-- currently ununsed I think

cb0max 200

schedVersion 0

secLevel 1 <-- actual access level, replaced by roles?

isTD 0 <-- also currently unused I think

firstLogin CURDATE <-- account creation time?

countryId 0

lexicon 'csw'

lexiconVersion 21

spherulitic commented 1 year ago

I believe this needs check to be done on the front end.

Login -> receive jwt -> client side, check keycloak.tokenParsed.cardboxPrefs object to see if the attributes above exist. Bundle up a list of missing attributes and send it to a new createCardboxPrefs view in the login service.