|
105 | 105 | //! - Add a field with the original unicode versions of the URLs instead of punycode? |
106 | 106 | //! |
107 | 107 | //! - `sec_fields`: The `username` and `password` for the site, stored as a encrypted JSON |
108 | | -//! representation of an `SecureLoginFields`. |
| 108 | +//! representation of an `SecureLoginFields`. |
109 | 109 | //! |
110 | 110 | //! This field is required and usually encrypted. There are two different value types: |
111 | | -//! - Plaintext empty string: Used for deleted records |
112 | | -//! - Encrypted value: The credentials associated with the login. |
| 111 | +//! - Plaintext empty string: Used for deleted records |
| 112 | +//! - Encrypted value: The credentials associated with the login. |
113 | 113 | //! |
114 | 114 | //! - `http_realm`: The challenge string for HTTP Basic authentication, if any. |
115 | 115 | //! |
|
242 | 242 | //! - test that we correctly merge dupes |
243 | 243 | //! |
244 | 244 | //! - `time_password_changed`: A lower bound on the time that the `password` field was last changed, in integer |
245 | | -//! milliseconds from the unix epoch. |
| 245 | +//! milliseconds from the unix epoch. |
246 | 246 | //! |
247 | 247 | //! Changes to other fields (such as `username`) are not reflected in this timestamp. |
248 | 248 | //! This is a lower bound because some legacy sync clients do not record this information; |
|
273 | 273 | //! callers to ensure that they're only working with valid records: |
274 | 274 | //! |
275 | 275 | //! - `Login::check_valid()`: Checks validity of a login record, returning `()` if it is valid |
276 | | -//! or an error if it is not. |
| 276 | +//! or an error if it is not. |
277 | 277 | //! |
278 | 278 | //! - `Login::fixup()`: Returns either the existing login if it is valid, a clone with invalid fields |
279 | | -//! fixed up if it was safe to do so, or an error if the login is irreparably invalid. |
| 279 | +//! fixed up if it was safe to do so, or an error if the login is irreparably invalid. |
280 | 280 |
|
281 | 281 | use crate::{encryption::EncryptorDecryptor, error::*}; |
282 | 282 | use rusqlite::Row; |
|
0 commit comments