• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
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 (Darkly)
  • No Skin
Collapse
brainCloud Forums

Only allow user to change username if it is unique and does not contain profanity?

Scheduled Pinned Locked Moved Solved General
userscloud codeapi
4 Posts 2 Posters 497 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.
  • K Offline
    K Offline
    kuabs
    wrote on last edited by
    #1

    Was following the tutorial over at bootcamp episode

    but a couple things came up.

    1. It looks like users can have overlapping display names / usernames correct? Is there a way to disable this behavior so that users will get an error if a name is taken?
    2. Can we implement a profanity filter on usernames?
    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #3

    Hi Kuabs,

    Assuming your app isn't otherwise using UniversalIds -- you can use what we call a Non-login Universal Id for this purpose.

    This utilizes our UniversalId concept - which is basically just a unique username for the user. But disables it for login purposes.

    You use this call to attach one: https://docs.braincloudservers.com/api/capi/identity/attachnonloginuniversalid

    I'd do it via cloud code script - and once an id has been successfully attached - automatically update the user's name to match that universalId. (Basically - we're piggybacking on the universalId to make it unique).

    Hope that helps!

    Paul.

    K 1 Reply Last reply
    0
  • K Offline
    K Offline
    kuabs
    wrote on last edited by
    #2

    For a lot of games a unique username (other than the profile name, a unique display name) is a bare minimum requirement. @Paul-Winterhalder Has this use case been solved?
    I see this post from 2021 https://forums.getbraincloud.com/topic/119/unique-field-for-a-custom-entity but unfortunately its not a solution

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #3

    Hi Kuabs,

    Assuming your app isn't otherwise using UniversalIds -- you can use what we call a Non-login Universal Id for this purpose.

    This utilizes our UniversalId concept - which is basically just a unique username for the user. But disables it for login purposes.

    You use this call to attach one: https://docs.braincloudservers.com/api/capi/identity/attachnonloginuniversalid

    I'd do it via cloud code script - and once an id has been successfully attached - automatically update the user's name to match that universalId. (Basically - we're piggybacking on the universalId to make it unique).

    Hope that helps!

    Paul.

    K 1 Reply Last reply
    0
  • K Offline
    K Offline
    kuabs
    replied to Paul Winterhalder on last edited by
    #4

    @Paul-Winterhalder Amazing! This is perfect for my needs-- thanks so much Paul.

    1 Reply Last reply
    1
  • Paul WinterhalderP Paul Winterhalder has marked this topic as solved on

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users