AWS Cognito, required fields not showing up when creating a user - aws-sdk

I created a user pool and selected email, phone number, name, and family name as required fields. However, when I create a user name and family name aren't there. When I pull a list of users from the aws-sdk those fields aren't listed there either.
How do I add the required fields so that they are available when creating a user and in the listUsers sdk response?

Related

user verification value - where to store

Quick question as relates to database.
Where would you store the value of "UserVerified"? (The one that occurs after the user has checked his email and clicked on the "Verify" link with the hash value at the end).
Would you store it in the User table? (Along with username, hash) ?
Or in the UserProfile table (along with first name, last name, email, phone, etc) ?
Please note that both tables will always contain 1 entry for a user, such that when a user is created, automatically a userprofile is created as well.
This is all up to your preference. I would figure out what you want it to be more related to, the account as a whole, or to the email address. If it is more related to the account and determines if the account is active, then store it in the User table. If this is more related to the email address and that it is verified, then store it in Profile table.
Again though, especially since the tables are 1:1, it doesn't really matter other than relation and readability.

how to let kamailio use different mysql peer users table

I create my own users table with different name and different field name, i want to let kamailio use it as 'acc' table for peer users how can i do that?
acc table in kamailio is for accounting records (i.e., billing data).
I understand you want to use a different table for user profiles (the user account details such as username and password). If yes, then look at the readme for auth_db -- the module has parameters for setting column names:
http://kamailio.org/docs/modules/stable/modules/auth_db.html
The name of the table is given as parameter to authentication functions from the module (e.g., see auth_check() docs).
Be sure you disable table version check via version_table parameter from same module.

How to change custom fields sql query on redmine

I use zapier to send sms to users when a new issue is created on Redmine.
I want to make it easy for users and sophisticated.
To do so; I've created a custom field on USER section which is named MOBILE. In Custom Fields menu, the user writes his/her phone number in this field.
I also created a custom field on ISSUES section. This custom field brings user list to ISSUES. User list custom field as you know is default redmine feature in ISSUES section for redmine 2.4.x.
So here is my question; I want user list custom field feature to bring user MOBILE numbers which I've created field on users accounts page. Current query brings name and surname and user to.
I checked apps-models-custom_field.rb however no luck. I couldn't find a solution.
I think inner join with custom_values table could solve my problem but I do not know how to do it, actually I don't know which file contains this queries for custom field user list.
Default user list feature of custom fields prints User firstname and lastname on ISSUES page also it just brings user id on the xml api.
So all I want to do is get user custom field content with their user id on the xml.
I hope I've made myself clear.
What are your suggestions?
You won't be able to find SQL queries in Redmine code as Redmine uses Rails' ActiveRecond framework to build SQL queries dynamically.
As I understand the query, you are looking for, should look like:
SELECT
login, firstname, lastname, value
FROM
users
LEFT JOIN
custom_values ON custom_values.customized_id = users.id
AND customized_type = 'Principal'
WHERE
custom_field_id = (SELECT id FROM custom_fields
WHERE type = 'UserCustomField'
AND name = 'MOBILE')
AND value IS NOT NULL
AND value != ''
Hope, this helps.

Issue about phpmyadmin, mysql and dreamweaver

I have an issue that I could not figure out. I need to clarify that I am very new to phpmyadmin, mysql, databases and dreamweaver.
Currently, I have one table (book) which contains these attributes (ISBN(primary key), title, author, publisher, price etc) in phpmyadmin
I have the other table (users) which contains these attributes (username (primary key), password, name, DOB etc) in phpmyadmin too.
Let me explain the series of steps for my webpages first. An user logs in on the log in page successfully, and he will be directed to the main page, then he will type or select his search terms, then the results page will display the relevant results in the master list, then he will select the specific result to go to the detailed page containing more information.
What I want now is to create a reservation page. If the user likes the specific book, he can click reserve it, and will be directed to the reservation page.
I intend to have these search textfields: Username, Title, Price, and Number of books.
How can I let the username textfield to be automatically filled with the username as the user has logged in at the login page initially.? Also, how can I let the title and price textfield to be automatically filled with the relevant title and price, as the user has clicked reserve it at the specific detailed page? I intend that the user just key in number of orders and press submit button. My 3rd database (reservation) will capture the info of username, title, price, and number of orders. Do i use insert record or update record?
Do i create a relational table in phpmyadmin by linking it with the keys from tables (book and users)? Will this be a many to many relationship?
You can use sessionId to display username in the textbox...
use javascript to automatic fill up the title and price....
for the 3rd databse u should use insert record and create 3rd table too...

FileMaker Pro Linking database relationships

I am making a Data base to manage all the computers in my business, i have two tables:
1)lists all the serial numbers and computer ip address,
2)displays a form for me to write a diagnostic report.
What i want to do, is when i type the computers ip address into the form, i want it to look up the serial number on the linked table, and then automatically populate the ip address field in the form.
Step 1 is to establish a relationship between your two tables, which I'll call SerialNumbers and DiagnosticReports.
Presumably in your SerialNumbers table you have the following fields:
Serial Number
IP Address
And in your DiagnosticReports tabel you have the following fields:
Serial Number
Notes
IP Address (if you want to capture the IP Address at the time you capture the note. This is not necessary if you always want to show the current IP Address for this serial number.)
In the Relationships tab of the Manage Database window (File Menu > Manage > Database > Relationships Tab) you will need to draw a line from the "Serial Number" field of the SerialNumber table to the "Serial Number" field of the DiagnosticReports table
SerialNumbers::Serial Number >----< DiagnosticReports::Serial Number
From here you have a choice to make. Do you want A: To store the IP Address at the time of the Diagnostic Report or to B: Show only the current IP Address for this Serial Number.
To do A, store the IP Address at the time the Diagnostic Report is made:
Go to the Fields tab of the Manage Database window
Select your DiagnosticReports table
Set the IP Address field to Auto-Enter the Looked-Up value from the SerialNumbers table for the IP Address field
To do B, show only the current IP Address for this Serial Number:
While editing the a layout displaying data from the DiagnosticReports table, drag a new field onto the layout.
Select the table SerialNumbers and the field IP Address.
It sounds like you can do it all with a single table.
Columns are:
Serial Number
IP Number
Description
Notes