Populate user preferences with UserAccount email if it is present, else return an error indicating no email is on record for the user.

This commit is contained in:
BlueWall
2013-12-16 15:10:09 -05:00
parent fe01e7d1cc
commit b03ec6137f
3 changed files with 73 additions and 7 deletions

View File

@@ -808,11 +808,12 @@ namespace OpenSim.Data.SQLite
else
{
query = "INSERT INTO usersettings VALUES ";
query += "(:Id,'false','false', '')";
query += "(:Id,'false','false', :Email)";
using (SqliteCommand put = (SqliteCommand)m_connection.CreateCommand())
{
put.Parameters.AddWithValue(":Id", pref.UserId.ToString());
put.Parameters.AddWithValue(":Email", pref.EMail);
put.ExecuteNonQuery();
}