• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

User create/import

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a way to import users and passwords from a flat file so they will not have to register themselves?

I would like to migrate from an existing app and need to know if it can be done.

What are my options?
Thanks.
[originally posted on jforum.net by honnold]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guy!

I'm not sure, I didn't test it by myself, but it's what you could test by yourself, and tell us if it works!

Create a SQL file with lots of INSERTS, adding the username and MD5 password... :?

But, sincerally, I think it's not a good idea... ops:

At really, it's stupid!!!

Why? Because JForum add lots of attributes to the database when happens a new user add. Anyway, you could test while a better idea doesn't arrive here! :lol:

You could take a look at the java class responsible to add users too! I don't know what is it... while an expert doesn't comment it, try mount the JForum's JavaDoc and discover what class do it! Tell us so, ok?

See you here soon...

[ ]'s
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can add users using raw INSERTS. Just make sure the passwords are in MD5 format, and you set values for "username", "email", and "registration date"

Rafael
[originally posted on jforum.net by Rafael Steil]
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic