mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
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:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user