TIMAI2
November 19, 2024, 4:53pm
9
Well the value returned for your tag username:
does not equal PasswordTextBox1.Text, that value contains everything:
You could use the contains
text block ?
Note: you are storing user passwords in plain text, not good for their personal data security.
You also use maths blocks for your tests, may be better to use text or logic blocks.
i have an idea, How can i make multiple values under one tag so i can add all these datqa plus the password under the name tag?
Taifun
November 19, 2024, 6:51pm
12
To store password hashes is very simple, the tools extension offers a method for that App Inventor Extensions: Tools | Pura Vida Apps
And later if you want to check, if the entered password is correct, compare the password hashes
Taifun
TIMAI2
November 19, 2024, 7:17pm
13
Here demonstrates a javascript hashing function, if you cannot use extensions
Try this:
GSRegLogPassBlank.aia (13.0 KB)
Uses a javascript function to generate the hmacsha256 hash on the app side.
Only downside is that the reset password is sent in plain text in the email...
There are better password generators out there...
SCRIPT function doPost(e) {
var ss = SpreadsheetApp.openById('YOUR SPREADSHEET ID HERE');
var sh = ss.getSheetByName("YOUR SHEET NAME HERE");
var msg;
if (e.parameter.fn == "getusers" ) {
var loginData = sh.getDataRa…
please help me by a screen for how to fix the login as you can see the tag data has all these values data so how can i split the password so i can login successfully?
Taifun
November 19, 2024, 7:32pm
15
Learn to work with lists and store your data as list... later use the select list item block to select the password from the list
(copied from imagnity.com , courtesy of @Saj )
List Blocks On App Inventor
by Sajal Dutta | app-inventor , tutorials | 102 comments
List is a necessity in almost every app regardless of what programming language you use. This is the easiest way to create and manipulate a set of values/items/elements in an ordered fashion. Please go over the reference before we start. In this tutorial, we will learn how to create a list, add new items to a list, display list items, replace an item in the list, re…
Taifun
TIMAI2
November 19, 2024, 7:40pm
16
As I already said, you could probably use the "contains" text block to find the password in your tag's value.
thanks so much its working well now
TIMAI2
November 19, 2024, 8:34pm
18
Looks wrong to me...
"text" should be the "value" of the tag username
"piece" should be just PasswordTextBox1.Text
yes thanks but it didnt work as well, i thought that been fixed yesterday but i was wrong so can you check how can i fix it please?
TIMAI2
November 20, 2024, 9:08am
20
based on what you previously showed for your data entry:
thanks so much for the quick reply, i did everything you showed me but it opened immediately without adding the id and password
TIMAI2
November 20, 2024, 9:54am
22
The GotValue should not be activated until you call the GetValue method. Are you calling it elsewhere ?
it just here on both screens below
TIMAI2
November 20, 2024, 10:57am
24
Hmm, there are too many false positives with this method.
Do as Taifun initially suggested and store your profile data as a list, and also check if the user is already present in the taglist.
Example blocks
thanks so much its working well but one more thing please, if i wanna add an image to these data as well, How can it be under the same tag? lets screen it please
thanks so much i just made it
Taifun
November 20, 2024, 12:05pm
27
mustafaalbasel:
just made it
Great
Now follow this recommendation to keep your users data save
To store password hashes is very simple, the tools extension offers a method for that App Inventor Extensions: Tools | Pura Vida Apps
And later if you want to check, if the entered password is correct, compare the password hashes
Taifun
sure, thanks again for the help