News:

Wondering if this will always be free?  See why free is better.

Main Menu

Yikes. I think I screwed up (again)

Started by wakewatcher, December 23, 2008, 01:52:30 AM

Previous topic - Next topic

wakewatcher

I've been integrating smf into my home grown application.  Prior to to using smf for user authentication I had something else that was username based. So I used members.member_name to index into my applications database.  Too late (at least before I rework it) I notice that there is the ability for users to change their usernames by editing their account profile.  This will cause the expected problems in my application.  I scrambled but couldn't find any permission setting that turned off the ability to change their username. (other than during off access totally.)  Is there?  Question number 2 more importantly can I be assured that the id_member field will never change for a a user? That is there is no maintenance task that cleans up the id_member list and reorders it?  -thx-
smf 2.0.18

Tyrsson

Well I am not sure if this is what you mean but if you deny the permission to edit their account settings then they should not be able to change their names (I think... Try it).

Also some mods in 1.1.7 and the core distribution of 2.x allows for the removal of inactive members. Which may not be a problem unless you recount the forum totals (not sure if that would change the member ID).

Just sharing what I know (the little it is).
PM at your own risk, some I answer, if they are interesting, some I ignore.

wakewatcher

Thanks.  Yeah the problem is I need them to be able to update their profile but just not change their username until I get it fixed.  (I can send out news to warn them and in the long run I"ll change my application to use id_member.)  In that regard I' manually removed users and it doesn't seem to reorder the id_member number but I worry about some maintenance task doing so.
smf 2.0.18

Tyrsson

Setup a test forum and then add some members and see if the recount will change the ID.

Watch this thread and someone will answer that happens to know the answer to this off the top of their heads.
PM at your own risk, some I answer, if they are interesting, some I ignore.

greyknight17

If you go to Admin >  Features and Options > Options, you should see a checkbox for Allow users to edit their displayed name? Make sure that's unchecked and it should remove that option for everyone.

Regarding the member IDs, they will not be reordered. If the account is deleted, the member ID should be removed as well, but all the other IDs after it shall remain unchanged. The member ID is set to auto increment for each new member that registers. So if you are member 100, you will remain at that number.

wakewatcher

Thanks.  I ended up peaking at the db and saw the auto increment on id_member and took a chance (not knowing all there is to know about MySql) that some maintenance function wouldn't reorder them. Glad you verified that for me.
smf 2.0.18

Advertisement: