4 ms·
Where is the definition of the password being hashed? The tutorial defines it as text: /* 'Users': collection { 'Password': text }*/ How does the p
by WorkLifeBalance 8y ago
Where is the definition of the password being hashed? The tutorial defines it as text:
/*
'Users': collection {
'Password': text
}*/
How does the platform know to hash that? Is it looking for magic property names?
- klageveen 8y agoNo, there is no magic :) When you set up the users at the top of the model file, you specify which property is the password.
- WorkLifeBalance 8y agoSpecifying something as password hashing as (sha256? salted sha256?) without telling it to seems like magic to me. So to clarify, it's this password: declaration which tells the framework to hash the input? users dynamic : . 'Users' password : . 'Password' interfaces root { } numerical-types Is this defined anywhere within the project or is this framework magic? (Or "glue" if you don't like the term magic). password is not mentioned again anywhere in the documentation, I'd like to understand how the framework knows to hash the input.
- klageveen 8y agoThe line `password : . 'Password'` points at the password property, which tells the framework to hash it. What kind of hashing isn't something you should have to specify or worry about. It's a strong salted hash and we'd like to make it even better at some point, but that's firmly in the realm of the framework implementation.
- TheOtherHobbes 8y agoThis parses to "Just trust us to get this right." I think you may have some issues persuading customers that's a wholly valid approach, especially when you're dealing with security and data integrity, GDPR, and so on.