CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP.NET - InMotion Framework

 Login with 3 fields

Print topic Send  topic

Author Message
AndyGB4

Posts: 122
Posted: 12/30/2014, 8:43 AM

Hi, for a new project, I need to know how to create a login screen that uses 3 fields.

The 3 fields are:
- Company ID (which is a code like "AND")
- Username (standard username. There can be multiple users attached to 1 company)
- Password (standard password)

I haven't had any luck with this lately.
Has anyone got this to work?
Or does anyone have any ideas?

I know I can probably get it done using only the regular 2 fields by merging the Company ID and the username, but the CompanyID might be longer than my example and usernames may get long and messy. So I would have liked to avoid that.

Thanks!
- Andrew
View profile  Send private message
eratech


Posts: 513
Posted: 12/30/2014, 11:16 PM

Andrew - yeah the built-in code expects a name and password only.

You would need to adjust the query code that does the lookup (I *think* it's in the Security code component)

To find it, add a Security dummy Code Expression like 'FindMe()' and let it generate, then search for it in the CCS Code.

E
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
cvboucher

Posts: 191
Posted: 01/01/2015, 12:32 AM

I once had a project with a similar requirement. So I created a user view where the login was username@companyid. Then I put a hidden textbox on the login form, specified that textbox in the login action, and populated the hidden textbox in a code embed before the login action with the username + '@' + companyid.

Hth,
Craig
View profile  Send private message
eratech


Posts: 513
Posted: 01/01/2015, 2:55 PM

Good work - the simplest 'CCS-way' without changing code is cvboucher's method and minimal extra work.

Cheers
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
AndyGB4

Posts: 122
Posted: 01/05/2015, 1:03 PM

Hey everyone,

that's actually a great solution!

I eventually figured out a way to do it, and it works well,
but I needed to play around with Code Charge's "Login" code to do so.

It involved doing a lookup in a table for the username and companyID.
Your solution is much simpler, and quicker!

Thanks!
View profile  Send private message
WillHolt

Posts: 1
Posted: 01/08/2015, 9:27 PM

Andy - just wondering - is your app something that was upgraded from CCS 4.x to CCS 5?

I've noticed a couple of minor things with my ASP.NET apps that were migrated (some CCS v3->v4->v5) - not your lower case issue, but some other little regeneration quirks.

I guess it will be an internal thing unless you want to dig through the XML template files that CCS uses to generate a lot of it?


You can check out our latest [url=http://www.brain-dumps.us/SY0-401.html]comptia a+ exam[/url] and [url=http://www.brain-dumps.us/SY0-401.html]security+ practice exam[/url] exams written by our [url=http://www.pba.edu/]pba[/url] to help you pass [url=http://www.kumc.edu/]www.kumc.edu[/url] You can also purchase [url=http://en.wikipedia.org/wiki/Florida_Southern_College]Florida Southern College[/url] Our [url=https://www.facebook.com/pages/Miami-International-University-of-Art-Design/107827585907242?sk=wall]Miami International University of Art & Design[/url] is simply excellent in quality.


_________________
imran
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.