Welcome Guest, Not a member yet? Register   Sign In
Migrating Users (Existing to Ion Auth)
#1

[eluser]AndrewTurner[/eluser]
Hi All,

I'm currently in the process of migrating over about 100 users to a new database, and to Ion Auth.

I have most of it working apart from the passwords, In the old Database they're stored in plain text, but Ion Auths are encrypted.

What would be the best way to migrate the users and passwords?

Thanks
#2

[eluser]daparky[/eluser]
You would have to export the existing users and then create an import routine. When doing the passwords you will have to use Ion Auth's algorithm by calling in it's methods.
#3

[eluser]AndrewTurner[/eluser]
[quote author="daparky" date="1294414054"]You would have to export the existing users and then create an import routine. When doing the passwords you will have to use Ion Auth's algorithm by calling in it's methods.[/quote]

Cheers, I ended up doing that earlier today after my moment of memory loss Tongue
#4

[eluser]Phil Sturgeon[/eluser]
All sorted?
#5

[eluser]AndrewTurner[/eluser]
Yeah, It's a bit of a hackish solution, but it works.
#6

[eluser]johnpeace[/eluser]
Andrew, I have to do the same thing today. Could you share your hackish solution so I can take a look, might save me some time (which I have exactly none to spare right now).

UPDATE: never mind, I just passed the data I had to ion_auth's register() method and that was all I really needed to do.

Piece o' cake!




Theme © iAndrew 2016 - Forum software by © MyBB