[SOLVED] User Email not set in database

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
YoannQ
Posts: 7
Joined: Sun Mar 12, 2006 7:10 pm

[SOLVED] User Email not set in database

Post by YoannQ »

On user_admin.php file, user's Email (use in thold plugins) is not added in database.

Edit user_admin.php and find this line (line 151):

Code: Select all

$save["full_name"] = form_input_validate($_POST["full_name"], "full_name", "", true, 3);
Add this new line after.

Code: Select all

$save["email"] = form_input_validate($_POST["email"], "email", "", true, 3);
Now in your database, you must insert a new row in user_auth table after full_name row.

Code: Select all

ALTER TABLE `user_auth` ADD `test` VARCHAR( 255 ) NOT NULL AFTER `full_name` ;

Good luck ;-)
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Email addresses are stored in a separate table for thold, not the user table.
YoannQ
Posts: 7
Joined: Sun Mar 12, 2006 7:10 pm

Post by YoannQ »

Right

But if you want to show email adresse in user admin interface you must be that.

Also it's better to read thold user table, but it's not easy in 5 minutes. Next version ?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Fixed in thold v0.3.6.

Please note that this version of thold requires Cacti 0.8.7 to function.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests