• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Setting User Language from WriteAPI

Scheduled Pinned Locked Moved NodeBB Development
4 Posts 2 Posters 1.6k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • snodejokeS Offline
    snodejokeS Offline
    snodejoke
    wrote on last edited by
    #1

    I'm currently using the write api to create users, but it would be really useful if we could set the language of the user on creation. I've tried passing in language as a member of the body object, but this hasn't worked.

    I've looked through the mongo objects collection and I can't see where the user's language is being stored either, is this determined from the location?

    I'm really hoping I don't have to write a whole plugin just for this 😮

    Cheers.

    julianJ 1 Reply Last reply
    0
  • snodejokeS Offline
    snodejokeS Offline
    snodejoke
    wrote on last edited by
    #2

    Just found the language!
    'user:uid:settings'

    1 Reply Last reply
    1
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    replied to snodejoke on last edited by
    #3

    @snodejoke At present, there is no way to set user settings via the write api. Could be added however 🙂

    1 Reply Last reply
    0
  • snodejokeS Offline
    snodejokeS Offline
    snodejoke
    wrote on last edited by
    #4

    Thanks for the response @julian. I guess I'll have to put it on my todo list!

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development