diff options
author | BlueWall | 2013-12-16 15:10:09 -0500 |
---|---|---|
committer | BlueWall | 2013-12-16 16:25:14 -0500 |
commit | b699af87dc5abca607f449caaee1a1ecc4131bf3 (patch) | |
tree | 797174ee5f00417afbebb7f039a2d1b3e444d80d /OpenSim/Data/SQLite/SQLiteUserProfilesData.cs | |
parent | Backport profile fixes (diff) | |
download | opensim-SC_OLD-b699af87dc5abca607f449caaee1a1ecc4131bf3.zip opensim-SC_OLD-b699af87dc5abca607f449caaee1a1ecc4131bf3.tar.gz opensim-SC_OLD-b699af87dc5abca607f449caaee1a1ecc4131bf3.tar.bz2 opensim-SC_OLD-b699af87dc5abca607f449caaee1a1ecc4131bf3.tar.xz |
Populate user preferences with UserAccount email if it is present, else return an error indicating no email is on record for the user.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserProfilesData.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs b/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs index 70ce07c..0a6c625 100644 --- a/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserProfilesData.cs | |||
@@ -810,11 +810,12 @@ namespace OpenSim.Data.SQLite | |||
810 | else | 810 | else |
811 | { | 811 | { |
812 | query = "INSERT INTO usersettings VALUES "; | 812 | query = "INSERT INTO usersettings VALUES "; |
813 | query += "(:Id,'false','false', '')"; | 813 | query += "(:Id,'false','false', :Email)"; |
814 | 814 | ||
815 | using (SqliteCommand put = (SqliteCommand)m_connection.CreateCommand()) | 815 | using (SqliteCommand put = (SqliteCommand)m_connection.CreateCommand()) |
816 | { | 816 | { |
817 | put.Parameters.AddWithValue(":Id", pref.UserId.ToString()); | 817 | put.Parameters.AddWithValue(":Id", pref.UserId.ToString()); |
818 | put.Parameters.AddWithValue(":Email", pref.EMail); | ||
818 | put.ExecuteNonQuery(); | 819 | put.ExecuteNonQuery(); |
819 | 820 | ||
820 | } | 821 | } |