Auto login after new user registration

Hello,
I would like to go directly to a restricted page (add session variables for username, level, etc) after a new user is registered, without first going to the login page. Is there a way to do this? I tried adding a login user behavior to my new user registration page, but it disabled the form validation on the page. I also tried copying some of the login page code (login transactions) into the new user registration page, but that didn't work either... any help would be greatly appreciated!
Steve
BTW, I am not utilizing email activation

Well I finally figured out a work around... I am sure others will run into this problem and if someone can explain it to me I would be happy. But for now this will work.
The above code that Steve U posted works for me exactly 50% of the time. It will work every other time, why I don't know. I even changed all of my temp and session directories in php configuration, changed from php5 to php4 and still no fix.
Here is what I did to get it to work:
On your registration form underneath the insert transaction you copy and paste the login transaction (that you generate on a login page).
*Change tNG_login(this is your server connection)
*Change the POST value to match your submit button on your registration form, mine is KT_Insert1.
*Modify the redirect trigger to go to the page you want to redirect to after registration.
*Change the kt_login_user and kt_login_password addColumn values to match the username and password fields in your registration form, mine are email_usr and password_usr
*comment out the kt_login_rememberme addColumn (or if you need this, modify the code to allow for it in the registration form)
I have now successfully registered a new account and had it auto-login to the user protected area 10 times in a row now, so this should be working.
If you want some sample code here it is:
// Make a login transaction instance
$loginTransaction = new tNG_login($conn_connection);
$tNGs->addTransaction($loginTransaction);
// Register triggers
$loginTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
//$loginTransaction->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$loginTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "user/confirmlogin.php");
// Add columns
$loginTransaction->addColumn("kt_login_user", "STRING_TYPE", "POST", "email_usr");
$loginTransaction->addColumn("kt_login_password", "STRING_TYPE", "POST", "password_usr");
//$loginTransaction->addColumn("kt_login_rememberme", "CHECKBOX_1_0_TYPE", "POST", "kt_login_rememberme", "0");
// End of login transaction instance

Similar Messages

  • Apex homepage with login and new user registration

    Hello there folks,
    I m building an application on Apex 4.2.1
    Our login page (default login page 101 from Cloudy 24 theme) has a login for existing users, works perfect.
    On the same page, I want to add a new region for new users to register.
    So we add a Button, named REGISTER NEW USER that points to a new form that a user inputs his data.
    But unfortunetely the button doesn't go to the new page and our bet is that it's because of authentication issues.
    How can we move to the new form, without needing login credentials?

    socrates wrote:
    Hello there folks,
    I m building an application on Apex 4.2.1
    Our login page (default login page 101 from Cloudy 24 theme) has a login for existing users, works perfect.
    On the same page, I want to add a new region for new users to register.
    So we add a Button, named REGISTER NEW USER that points to a new form that a user inputs his data.
    But unfortunetely the button doesn't go to the new page and our bet is that it's because of authentication issues.
    How can we move to the new form, without needing login credentials?In the Security settings of the new page, set the Authentication property to Page Is Public.

  • New User Registration page does not launch

    I am setting up a simple process to register a new user to my APEX application. At the login screen, the user can select "new user registration" button if they would like to register for a new id. Well, it was working for awhile and it stopped working sometime after I added the validations for the new registration fields. Now, whenever I launch the login screen and click on the "new user registration" nothing happens. If I bring up the "new user registration" page in the application builder, and click "run", it launches the login screen! I do have redirects back to the login screen in the event that the user clicks "cancel" or "register" on the "new user registration" page.
    This is very strange. Does anyone have any ideas as to the cause or how to track this down?
    Thanks,
    Reid

    I'll see if I can put the app on apex.oracle.com. I disabled the redirects and all of the not null validations I had. It's still behaving the way it did.
    In the meantime, I noticed this oddity. It seems like there is a mismatch between the URL page # and the actual page that is displayed. Here is what I mean. Here is the url:
    http://rilian:8080/apex/f?p=103:8:7659307535557230:::::
    See the page should be p=103:8. This is app 103, page 8, right?
    Well, that is the correct app and page. However, it displays app 103, page 101.
    When I click on the "new user registration" button, the url changes to this:
    http://rilian:8080/apex/f?p=103:8:7659307535557230::NO:8::
    And, I'm still on page 101, not page 8.
    Like I said before, this was working like a champ earlier this week and I went to show my wife how I had it working and boom it stopped. LOL. Murphy's law...
    Thanks again,
    Reid

  • Auto Approval of Self User Registration Fails OIM 11g R2

    Use Case : Auto Approval of Self User Registration
    Steps followed
    1. A New Approval Policy created with Auto Approval flag set as True for Request Level Approval.
    2. A New Approval Policy created with Auto Approval flag set as True for Operation Level Approval.
    3. The field Organization was pre populated using the Pre Population Adapter, as mentioned below.
    +<AttributeReference name="Organization" attr-ref="act_key" type="Long" widget="ENTITY" length="256" required="false" available-in-bulk="false" entity-type="ORGANIZATION">+
    +<PrePopulationAdapter name="OrgPrepopulateAdapter" classname="com.plugin.OrgPrepopulateAdapter"/>+
    +</AttributeReference>+
    4. A new user was created using the "Register New user" Link.
    5. Log in as System Adminstration and under Track requests, found that the New request has failed.
    6. On click of Request link, the request details shows the Organization field has populated with the expected value.
    7. The Logs suggests that the Request failed due to Organization field going Null.
    LOG
    [2013-02-12T15:50:39.138+05:30] [oim_server1] [ERROR] [] [oracle.iam.request.impl] [tid: [ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: e171ff3c1743d36a:6c2e4f90:13ccdc4a231:-8000-00000000000006f8,0] [APP: oim#11.1.2.0.0] Exception thrown java.lang.IndexOutOfBoundsException: Index: 0, Size: 0     
    [2013-02-12T15:50:39.138+05:30] [oim_server1] [ERROR] [] [oracle.iam.request.impl] [tid: [ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: e171ff3c1743d36a:6c2e4f90:13ccdc4a231:-8000-00000000000006f8,0] [APP: oim#11.1.2.0.0] Exception thrown Index: 0, Size: 0[[     
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0     
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at oracle.iam.requestactions.approval.operationlevel.OrgBasedMethodology.getOrgDetails(OrgBasedMethodology.java:215)
    -------------

    Use Case : Auto Approval of Self User Registration
    Steps followed
    1. A New Approval Policy created with Auto Approval flag set as True for Request Level Approval.
    2. A New Approval Policy created with Auto Approval flag set as True for Operation Level Approval.
    3. The field Organization was pre populated using the Pre Population Adapter, as mentioned below.
    +<AttributeReference name="Organization" attr-ref="act_key" type="Long" widget="ENTITY" length="256" required="false" available-in-bulk="false" entity-type="ORGANIZATION">+
    +<PrePopulationAdapter name="OrgPrepopulateAdapter" classname="com.plugin.OrgPrepopulateAdapter"/>+
    +</AttributeReference>+
    4. A new user was created using the "Register New user" Link.
    5. Log in as System Adminstration and under Track requests, found that the New request has failed.
    6. On click of Request link, the request details shows the Organization field has populated with the expected value.
    7. The Logs suggests that the Request failed due to Organization field going Null.
    LOG
    [2013-02-12T15:50:39.138+05:30] [oim_server1] [ERROR] [] [oracle.iam.request.impl] [tid: [ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: e171ff3c1743d36a:6c2e4f90:13ccdc4a231:-8000-00000000000006f8,0] [APP: oim#11.1.2.0.0] Exception thrown java.lang.IndexOutOfBoundsException: Index: 0, Size: 0     
    [2013-02-12T15:50:39.138+05:30] [oim_server1] [ERROR] [] [oracle.iam.request.impl] [tid: [ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: oiminternal] [ecid: e171ff3c1743d36a:6c2e4f90:13ccdc4a231:-8000-00000000000006f8,0] [APP: oim#11.1.2.0.0] Exception thrown Index: 0, Size: 0[[     
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0     
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at oracle.iam.requestactions.approval.operationlevel.OrgBasedMethodology.getOrgDetails(OrgBasedMethodology.java:215)
    -------------

  • Firefox is not handling Skype new user registration properly.

    When I attempt to register a new skype account (on skype.com) I get one of 2 responses. One is that it brings me back to an empty new user registration form, and the other is that it acts like it finished but the user is never actually created. This was duplicated on multiple Intel based mac laptops running 10.6.x on Firefox 4. New user registration works fine in Safari and Chrome on these machines.

    I also have this problem. I cannot open links from a discussion board I frequent nor can I open links from my email. Also after opening my email, I cannot go to any other sites except my home page. I can then go no where else.
    When I close Firefox and try to reopen it, it does nothing! I have to bring up the Task Manager and end the Firefox process before I can get back in.
    To the best of my knowledge, this problem started with the new update to Ver. 3.6.9. I am running Windows XP Media Center 2005

  • IMac stuck in new user registration video

    Hello, I have an iMac Flat Panel 1Ghz I got off ebay. I don't know the admin username and password and performed the apple recommended startup in Single User using Control-s on startup. This worked fine as I now have reset this iMac to startup on the original Apple registration video. I fill in the new user registration info but it gets stuck or freezes up after I select this computer does not connect to the internet. Is there anything I can do before I buy a new hard drive? Any help is appreciated. I don't have the original system install disks and it has system Tiger 10.4 and it won't boot up from an install disk, it goes directly into the new registration video and gets stuck. Help!!

    You can recreate the missing file.
    cd /var/db
    mac $ ls -la .AppleSetupDone 
    -rw-------   1 root  wheel  1060 Nov 24  2007 .AppleSetupDone
    pico .AppleSetupDone
    copy & paste this into pico:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>Address</key>
            <dict>
                    <key>AreaCode</key>
                    <string>111</string>
                    <key>City</key>
                    <string>City</string>
                    <key>Company</key>
                    <string></string>
                    <key>CountryName</key>
                    <string>name</string>
                    <key>ExistingEmailAddress</key>
                    <string></string>
                    <key>FirstName</key>
                    <string>Robert</string>
                    <key>LastName</key>
                    <string>last</string>
                    <key>LocalPhoneNumber</key>
                    <string>1111111</string>
                    <key>StateProv</key>
                    <string>st</string>
                    <key>StreetAddr1</key>
                    <string>1 St</string>
                    <key>StreetAddr2</key>
                    <string></string>
                    <key>ZipPostal</key>
                    <string>00000</string>
            </dict>
            <key>RegistrationInfo</key>
            <dict>
                    <key>AppleSpam</key>
                    <string>NO</string>
                    <key>Location</key>
                    <string>z</string>
                    <key>Occupation</key>
                    <string>0</string>
                    <key>OthersSpam</key>
                    <string>NO</string>
            </dict>
    </dict>
    </plist>
    *now type:*
    control-x
    y
    This information does not apply to accounts that have filevault. I do not believe that you can change the password to a filevault account with in these methods.
    Overview on how to fix password problems
    Try running repair permissions and check for file integrity in disk utility. You do this from your startup disk. Try resetting the password by using the passswd or try deleting the .applesetupdone file. If this doesn't work, you are going to have to trash the netinfo database. Once you get logged on, you will need to re-access your data.
    Disk Utility
    This article deals with disk recovery, it will tell you how to get to disk utility.
    http://support.apple.com/kb/TS1417
    Change Password
    Mac OS X:
    Changing or resetting an account password via GUI:
    Resetting a user's password
    Resetting the original administrator account password
    http://docs.info.apple.com/article.html?artnum=106156
    You do not have a CD/DVD
    Changing password from single user mode:
    You can also change the administrator's password from single user mode or create a new administrator account.
    You need to get into single use mode for steps one and two that are listed below.
    This page will tell you how to get into single user mode.
    http://support.apple.com/kb/HT1492
    Basically, you hold down the command-s key then powering on your machine. The command key has a little apple symbol on the lower left. It is between the alt/option key and the space bar. On a PC keyboard, it will be the windows key, I think.
    1) You can change the password on an account. ( Do you know Unix. You are in a Unix single user console. ) The setup commands you need should be listed on the screen. For Mac OS 10.4.11, the commands are:
    # Type the follow two instructions to access the startup disk in read/write:
    /sbin/fsck -fy
    /sbin/mount -uw /
    # Start up some utility processes that are needed.
    sh /etc/rc
    # You will probably need to press the return key once the system stops typing.
    # To find out the users on the system type, use the list command. The l is a lower case L:
    ls /Users
    # One of these accounts will be the administrator.
    # Pick one of the users which I'll call a-user-name and type it in this command:
    passwd a-user-name
    # and enter the new user password. You need six characters.
    # You will need to enter your password twice. Your typing will not show up on the screen just
    # press enter when you complete the typing.
    # For cryptic information on these commands try:
    man ls
    man passwd
    The root account isn't enabled by default. I am not sure if changing the password on root will enable it.
    2) Get the Mac to set up an additional administrative account. You can then change the password on your old account.
    Start with your computer power off. Hold down command-s. Power on your computer.
    Type in the following:
    The first two commands will depend on your release of Mac OS X. Look at what is typed out in the console to determine the exact format.
    # Type the follow two instructions to access the startup disk in read/write. Press return after each command.
    /sbin/fsck -fy
    /sbin/mount -uw /
    cd /var/db
    pwd
    #List all files. The l is a lower case L.
    ls -a
    #The move command acts as a rename command in this format.
    mv -i .applesetupdone .applesetupdone.old
    reboot
    Once you've done that the computer reboots and it's like the first time you used the machine. Your old accounts are all safe. From there you just change all other account passwords in the account preferences!!
    Limnos adds detailed explainations:
    http://discussions.apple.com/message.jspa?messageID=8441597#8441597
    The above the idea came from a post by JoseAranda at September 9, 2006 3:48 AM
    http://www.askdavetaylor.com/howdo_i_reset_my_mac_os_x_admin_rootpassword.html
    You will need to scroll down to see this post. Search for applesetupdone
    Or see:
    http://superpixel.ch/articles/running-setup-assistant-again/
    Once you have a new administrative account, you can change the password of your old administrative account
    blue apple > System Preferences > Accounts
    • You can see that it is easy to change your administrator password. You can set a firmware password that you enter before your machine will boot.
    http://support.apple.com/kb/HT1352
    • For the best data security, you should use FileVault. Create a good logon password. Define and use a good backup plan. I do not recommend using FileVault unless you really need the security because it is much harder to recover your data should you have a hard drive problem and you do not have your data backed up.

  • Facing error while trying login with new user

    Hi All,
    i have created a new user with name abcd and provisioned user with planner access.
    when am trying to login in am facing error as "Application is in maintance mode new user cant login".
    pls let me know how to get application out of maintance mode and login with new user.
    Thanks in advance
    cheers,
    SM.

    SM,
    The error occurs when the database is in read-only mode. The database is changed to read-only when the application/database needs maintenance.
    Use the following MaxL Commands to change the database to read-write mode.
    login UserName Password on EssbaseSvrName;     
    alter application AppName load database DbName;
    alter database end archive;     
    alter application AppName enable commands;
    Hope it helps....
    KosuruS

  • How to Auto Login after registeration

    I have the following requirement and I've spent some time trying to experiment and looking for solutions but have failed to come up with anything that works.
    Requirement:
    > Register the user in CQ
    > Automatically login the user once he registers
      > The user should stay logged in (remember me forever)
    I've am able to succesfully register the user using the OOTB examples. I created my own register form action based off the libs/foundation/components/actions/update/post.POST.jsp file.
    I've looked into several api's to figure out how to auto login once the 
    am.getOrCreateAccount() call finishes successfully
    I tried
    repos.login(creds);
    Even tried the httppost way described on this thread: http://forums.adobe.com/message/4896922
    If anyone can point me in the right direction would really appreciate it!
    thank you!!

    Hi,
    How did you create sign up page. I tried to create a user registration page using "Create and Update Account" form action, but its not create new user account.
    Can you please help me if there something which I am missing?
    -Navin

  • Auto-login then Fast User Switch out?

    I've got a few programs (e.g. Chronosync) that need to launch as a user upon login. I need these to launch at boot time. Of course, I could auto-login to this account, but that would leave the machine sitting there with an admin account logged in (something I'd rather not do).
    Is there any way I could do something like auto-login to this acct at boot and then do an immediate FUS out to the login window?
    Craig

    One way to do this is with Automator:
    1) Launch Automator. Make a new custom workflow.
    2) Choose the "run shell script" action. Paste this text into the box:
    /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend (all that should be on one line)
    3) Save the workflow as an application.
    4) Go to System Preferences -> Accounts -> your account -> Login items. Make your Automator app a login item.

  • Slim configuration: allow auto login after first login exits

    Hello Everyone,
    I am new to archlinux, and am totally loving it so far.  I am configuring slim for auto login and have been successfully able to do so.  However, the first time I logout I am presented with a slim login prompt.  Is there a way to disable that and just login with the default user again?  I need this because I would be running this on an unattended machine (kiosk like) and I want my program to start all over again in case it crashes or something.
    Thanks in advance,
    verma

    tomk wrote:You could forget about slim, and do this instead.
    Great!! This will do it!
    Thanks

  • How to create custom "new user registration" process?

    Hello,
    I need to allow new users self-registration, but they must provide a little bit more information during registration. So I need to change or create new registration process.
    How can I do this?

    As far as your goal is only to extend user attributes:
    1) Check the membership module
    2) View source on the Registration page
    3) Create your new registration page with
    new user ldap attributes as input fields names
    and test your new template with membership module
    PS: For more customization you have to write your
    own module or extend membership module.
    Cheers,
    Alex :-)

  • New user registration email verification

    We have a new requirement user registration , when a new user registers with us he has to fill out a simple form with email address username , password etc we save all this detail and a flag that his email verification is pending .Next our application has to verify he gave us right email address for that we send an email with a link, opening this link we update our database the flag as verified email address, something like posting to forums I have to confirm my subscription by replying to the email wicket forums sends , please suggest me is there anything available which I can use than doing all that stuff I mentioned above ?

    gimbal2 wrote:
    DrClap wrote:
    gimbal2 wrote:
    It has to work with an unknown database and update an unknown tableOkay, apparently I didn't read the problem description properly and still do not. I don't know where an unknown database comes into the picture.I was assuming that the user information, including the "verification pending" flag, would be stored in some kind of database. But yeah, I suppose it's possible the user information would be persisted in some other way. This just makes it more complicated to write a generalized system of the type the OP is looking for.Actually I meant that this was to be built into a known web application (or applications) and thus with known database(s); everything under personal control and thus no head aches at all. The only additional requirement I see is that it is to be used in multiple applications, but in that I say: reuse the trick, not the code.
    The code is boiler plate.
    JEE containers are much more generalized with more functionality.
    But the code isn't that difficult, by itself, but still isn't trivial. So as a stand alone library I doubt anyone would bother to create a framework.

  • [Solved]can't disable auto login after upgrade to gnome 2.28

    Prior to upgrading gnome to the latest version I had set gdm up to auto log me in. Since the upgrade I can't figure out how to disable auto login. I would like to be able to disable auto login, can anyone on here please help me out here? Thanks for any help provided.
    Last edited by daedalusman (2009-11-03 05:06:05)

    anonymous_user wrote:Look in your /etc/gdm/custom.conf file.
    Ah, thanks a bunch. This had been bothering me for awhile now, just finely got around to trying to fix it. Thanks again.
    Ranguvar wrote:
    You can't.  Using the advanced AI now in 2.28, GNOME has decided you are too stupid to log in yourself, and is now in User Protection Mode(TM).
    tongue xD
    Sorry, I have no constructive advice.  Just poking fun.
    No problem, you actually made me laugh out loud, so thanks for that.

  • Change to new user/login as new user

    btartsa has given me a user account so I can save my own files on his computer. I'm still so new to linux that i can't even login to my own account, I do know how to change directories and surf around within an account, but this is useless to me as btartsa doesn't have permission to access the files on my account.

    Run "su username" (if I get what you want).

  • Audigy 2: Windows XP hang at login after new drivers instal

    Hi All,
    I have found that after installing the latest version of the Audigy 2 drivers (<span class="Apple-style-span">SBAX_PCDRV_LB_2_8_000) on my Windows XP SP2, sound works just before you reboot after installation. After the installation reboot, and after you enter your password at the login screen, you hear the logon-sound, and after that XP freezes.
    I have booted into Safe mode and disabled all startup items, and Windows then boots normally. However, when I try to narrow down the fault by selecti'vely re-enabling some of the Startup items, it then hangs again (no matter which ones I enable).
    So far, the only successful startup config consists of only the CT startup items being enabled.
    If I enable ANYTHING (even a single different item each time) else Windows hangs again.
    The only solution is to select "Restore last good known configuration" before Windows boots up. Undoing the driver installation using System restore, does NOT help.
    Anyone with any ideas?
    Thanks?

    UPDATE: Just updated to SP3 and guess what? Windows hangs at login as before, despite the fact that I was using the older, up to now fully working, drivers.
    Solution? Simple! Throw the card in the bin, and enable the onboard soundcard. END of problems! These people at Creative are completely USELESS...Not wasting any more of my time on their crappy products (and programming).
    ++?
    Hi there,
    Thanks for the reply; I have already gone back to?<span class="Apple-style-span">SBAX_WBUP2_LB_2_09_006<span class="Apple-style-span">?which seems to be working OK.
    The point is however that part of the new release does not work, and I am convinced that it is related to some 'helper' application and not the main driver itself.
    Anyone else having similar trouble?
    Thanks?
    Message Edited by lordbyte on 08-02-2008 02:04 PM

Maybe you are looking for