Set the region used for IdC login.
(&mut self, region: String)
| 332 | |
| 333 | /// Set the region used for IdC login. |
| 334 | pub fn set_idc_region(&mut self, region: String) -> Result<usize, DatabaseError> { |
| 335 | // Annoyingly, this is encoded as a JSON string on older clients |
| 336 | self.set_json_entry(Table::State, IDC_REGION_KEY, region) |
| 337 | } |
| 338 | |
| 339 | /// Get if user has already completed a migration |
| 340 | pub fn get_has_migrated(&self) -> Result<Option<bool>, DatabaseError> { |