I am new to xamarin.
In my first project I will just create a fingerprint login and say hello to the logged-in user:
So in android I have 3 fingerprints:
user1 = **alex**
user2 = **steven**
user3 = **sam**
for now iam using this fingerprint plugin
is it possible to get an unique id which fingerprint is used?
so if alex put his finger on the sensor I get as a result a unique id = 123456789 (every time user alex put his finger on the sensor)
at the end i will output the current authentcated user like hi alex
or is it possible with another plugin/code?
thanks
Related
When a new user is registered through the registration form of Laravel framework, the id given to this new user is not the next id that exists in table users.
To give you an example, take a look to the next picture:
The id of the new registered user should be 6, and not 22.
What I assume is that for testing purposes I already have deleted some users from table users and that maybe the reason of the gap of ids.
Any ideas how to fix this?
Ids will not get reused, id column is using auto_increment by default
1 - user 1
2 - deleted
3 - deleted
4 - new user // new user will get id 4 not 2
if you manually delete users when doing your tests you should reset auto_increment
example with phpmyadmin
there is a AUTO_INCREMENT field you need to reset to the value you want
I have currently worked on machine learning model and i used CNN model for it. My project is signature detection in which each folder contains users signature(10 signature per user). I want to assign label and id to folder. structure is as follow
Data-> Train-> user1 user2 user3
This is hard coded in program. It is cool for limited user but whenever number of user increase it create problem. So i want dynamically manage it. Help me out how can i manage dataset and gives label to folder with id to retrieve user information.
how can i load a directory of png in tensorflow? Looks similar to your problem,
tf.train.match_filenames_once("/home/xxx/Desktop/stackoverflow/images/*/*.png"))
instead try this :
tf.train.match_filenames_once("/your/path/Data/Train/user*"))
I build a Laravel app.
In table users I have 2 kinds of users - one user is restaurants and another user is restaurant stuff.
What I exactly need?
I want to sync user (res stuff) to user (restaurant). Is that possible or I need to move the restaurant to the other table and then sync?
I'm looking just for the idea and is that possible?
What is the difference between the user in the same table is admin field - res users have value '999' at admin column and res stuff has value '1' at admin column.
Anyone know how I can get the user id for a certain user in Auth?
Let's say I am logged in with current user jalla#gmail.com, then I can get userid by
let userId = FIRAuth.auth()?.currentUser?.uid
But if I want to get the userId of the other user jarra#gmail.com while I am logged in as jalla#gmail.com.
How can I do that?
This is how I create a new user:
FIRAuth.auth()?.createUser(withEmail: txtUsername.text!, password: txtPassword.text!, completion: {
user, error in
if error != nil {
print("error: " + error.debugDescription)
}
else{
print("User created")
self.login()
}
})
Which result in the authenticated user in the image attached.
I also have a Users table, but this has nothing to do with authenticating users for login.
The thing is that I need to programatically add new authenticated users. Which is ok, but how can I query data from the Authenticated table? I need to do it because I add the authenticated uid to each user roots in the database (see User table image)
For each user, create a record in your Firebase Database and store uid for each user so that you can retrieve that uid once you need it.
If you will query uid information by using the email information of the said user (i.e. jarra#gmail.com in your case), it might be best to store user information including uid under a key of respective user's email.
If you are logging in code rather than the console, one option is to leverage a /users node.
With Firebase, it's common practice to have a /users node that stores information about your users.
users
uid_001
email: "dr#who.com"
name: "Dr. Who"
fav_food: "Jelly Babies"
uid_002
email: "homer#simpsons.com"
name: "Homer Simpson"
fav_food: "Doughnuts"
The uid's used as the key to each user node are the ones created by Firebase when the user is created.
From there, it's a snap to query for the email address which will retrieve the node in question, the parent key being the uid of the user.
In my application I have an administrator who can create Tournament objects. When the object is created the service also creates a user (based on the tournament director's info which was entered at creation). The username for the user is the director's e-mail, the password is randomly generated and then mailed to the director.
When the director logs on with his e-mail address and password, I need to be able to link him to his own tournament, in order to only allow him to edit his own tournament's details. I have tried to find a way to store the TournamentId in the default ASP Net Users database, but was unsuccessful.
I had a look at this SO question which would certainly help me, but I can't figure out how it would apply to my problem. When the user logs on, I can't put the TournamentId in the userdata seeing as I don't know it.
Should I then do a lookup in the Tournament table to see which ID corresponds to the email address entered at login and store that in the userData? It seems quite unelegant this way.
I guess you should have a CreatedBy column in your Tournament table where you store the ID of the user who created the tournament. Then when the user logged in, get his id ( may be from session ,if you store it there), Do a select query where CreatedBy=loggedInUserId .That should do the trick.