How to do silent login after create account?

I have custom createAccount MVC. After successful create account, I would like to do silent login and take them to home community. Here is my code sample:
LoginModel m_asLoginModel = (LoginModel) m_asOwner.GetModel(LoginModel.STR_MVC_CLASS_NAME);
m_asLoginModel.SetUserName(sUsername); m_asLoginModel.SetUserPass(sUserPwd); Redirect myDirect = m_asLoginModel.attemptLogin(m_xpRequest, m_WebData);
if (m_asLoginModel.GetSession() != null)
The above code didn't work. So I did try this way,
LoginResult loginResult = LoginHelper.INSTANCE.AttemptLogin(sUsername, sUserPwd, null, false, m_asOwner, m_xpRequest, m_WebData); if (loginResult.m_bSuccess)
This one is returning false, eventhough create account is successful.
Thanks in advance.

Hi Waleed,
are all user accounts meant to suspend after, say, 1 year, or will this vary between users ? If it´s the same expiration period for everyone, you can well handle this in ADDT´s Control Panel -- see the "Restrictions" tab, and in here see the "specify account expiration settings" component. Here´s where you can define a "default expiration interval" like, 365 days.
But if the expiration interval might vary, I think that you might consider this approach:
1. add the "end_date" column to ADDT´s session variables
2. on each page compare the current date with the "end_date" session variable, and...
3. if the current date is later than the "end_date", redirect the user to whatever page
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver

Similar Messages

  • How to reset UID for new created accounts?

    Hi everyone,
    OS X uses the UID 501 for the first admin account and subsequently counts up for the coming accounts (502, 503, etc.). I sometimes need to create an additional account which will get deleted after a while. The next time I create such an account the UID counter goes still up so that I currently am somewhere around 510.
    What I’d like to know is, how does one reset the UID counter so that it will give out 502 again for my next created account? Does this involve dsctl? Any help is appreciated!
    Björn

    Sorry for taking so long to get back to you, but I was away for a week. I know about the advanced options, but was reluctant to try it this way. Just tested this in a VM and it works! You simply change the UID via System Prefs/Accounts/Advanced to say 502 and the subsequent accounts will follow. The only thing to keep in mind is to close System Preferences after deleting accounts in order to reset the counter. If you continue to create new users without quitting it first, it will continue at 511 or whereever you were.
    The reason I want to do this, is simply to not lose my overview about which account uses which UID.
    Thanks!
    Björn

  • How to change CUBE properies after create

    Hi,
    I am using AWM 102020A, I have created a CUBE and now want to go back and change some of the implementation details , is it possible to change :-
    Tab -> Implementation Details
    1. Order of dimensions
    2. Sparsity checkbox
    3. Partition Details
    Tab -> Cache
    1. Turn on session cache if checked off.
    Seems these are locked down after create, how can I change these details.
    Thanks for any help,
    Brandon

    Since you are you using the 10.2.0.2 version of AWM I suppose the database version you are using is also 10.2.0.2 or below.
    So to my knowledge the answer is no.
    If you are on the 10.2.0.3 version you have some more options because of the integrated sparsity advisor. Then you would have had the opportunity to recreate the cube. I have never tested the actual recreate function, but I've tested the sparsity advisor and saw that I could change if the cube was to be compressed, what dimension to be sparse etc.
    Seems like to have to have the 10.2.0.3 version of the database for this to work.
    regards Ragnar

  • Can not login after changing account short name and home directory

    Hi,
    I did sth rather stupid while trying a get timemachine working on my iMac 10.5.5.
    I changed the short name, login shell and home directory of my account. (didn't listen to the waning that I may not be able to login if I change those information Now I can not log into my account anymore. I tried to use fileVault master password to change the password of my account, but it didn't help. Can anyone tell me how do I fix this problem?
    Thanks a lot!

    xyz2008 wrote:
    No, I still can not log in as that user.
    I did as you advised, but it gave the following message:
    "attache failed, no such file or directory"
    then I suspect you may be entering the command incorrectly. another possibility is this. I noticed you said in one of the previous posts that if you cd into the main user home directory you only see user.sparseimage. It actually should be user.sparsebundle. Or have you upgraded to leopard from tiger with filevault turned on? then it could have remained sparseimage rather than sparsebundle.
    run the following in terminal
    sudo ls -la /users/username
    and post the results.
    does it list sparsebundle or sparseimage?
    Another thing, when I typed in the command, it didn't take the admin (root) password, but the password of the account I was logged in got me through.
    that's what it has to be. it takes the password of the user (it jhas to be an admin user) which is currently logged in.
    I am wondering if I can recover the problem user's files from the sparseimage file, then copied all the files to a new user.
    Message was edited by: V.K.

  • How to change table name after creating page and application

    Hi HTMLDB Team,
    i have created a application with page where the region use master detail form with table name emp.Now after developing the page and the application i want to change the table from emp to emp2 where emp2 is the table with same structure of existing emp and same field properties.How can i edit the table as emp2 ?
    Thanks in advance,
    Cheers,
    koushik

    Koushik,
    Depending on the amount of customizations that you did, it may be easier to use the wizard to re-create the master-detail form & report.
    If you still want to give it a go:
    Assuming that you created the 2-page Master Detail report & form:
    On the first page, you will have to chage the SQL to reflect the new table name. Once you do that, you'll have to re-create the link on the EMPID column.
    On the second page, you'll need to do some more work. You'll have to change both Page Rendering Processes: Fetch Row from EMP and Get Next or Previous Primary Key. You'll then need to change the Page Processing Process: Process Row of EMP. Also, ensure that you have a proper Foreign Key relationship between EMP2 and DEPT (or your detail table).
    Thanks,
    - Scott -

  • Question: How do I retrieve values after creating an autofilter.

    So the question is sort of simple but my code is below, this is my first time really running in VBA but it isn't so far all to dissimilar to LotusScript which I am a bit more knowledgeable in. What I am trying to do is retrieve values from the filtered information,
    or more simply, I am trying to retrieve values from two cells in the spreadsheet that I want move together.
    As noted below one of them is a countries field which simply concatenates the country string with the duplicates with the same first column (A#) fields. 
    Example 123 .. UK
                  123 .. US
                  123 .. CA
    The output stored in countries would be UK,US,CA and posted to sheet3.
    Sub proFirst()
    Dim wSheet As Worksheet
    Dim columnCount As Integer
    Dim rowCount As Long
    Dim testVar As Long
    Dim coll As New Collection, a
    Dim Assignee() As String
    Dim tmpList() As String
    Dim newVar As Variant
    Dim dict As Object
    Const rowDataBegin = 2
    Dim count As Long
    rowCount = Sheets("Sheet1").UsedRange.Rows.count
    columnCount = Sheets("Sheet1").UsedRange.Columns.count
    '** This Cleans up the filtering to ensure all data is viewable before we begin **
    Sheets("Sheet1").Activate
    If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
      ActiveSheet.ShowAllData
    End If
    Sheets("Sheet3").Activate
    If (ActiveSheet.AutoFilterMode And ActiveSheet.FilterMode) Or ActiveSheet.FilterMode Then
      ActiveSheet.ShowAllData
    End If
    '** This sets a filter to filter by column O which is designated as Submitted Date  **
    Sheets("Sheet1").Columns("A:S").AutoFilter Field:=15, Criteria1:="<>"
    '** This block copuies and pastes the values we need for the final report however   **
    '** this is not a permenent viewable format for the report, a recut may be required **
    Application.CutCopyMode = False
    rowCount = Sheets("Sheet1").UsedRange.Rows.count
    Sheets("Sheet1").Range("A1:D" & rowCount).Copy Sheets("Sheet3").Range("A1:D" & rowCount)
    Application.CutCopyMode = False
    Sheets("Sheet1").Range("J1:J" & rowCount).Copy Sheets("Sheet3").Range("H1:H" & rowCount)
    Application.CutCopyMode = False
    Sheets("Sheet1").Range("O1:O" & rowCount).Copy Sheets("Sheet3").Range("I1:I" & rowCount)
    Application.CutCopyMode = False
    'loops through the first column and acquires all of the data and generates as string array
    rowCount = Sheets("Sheet3").UsedRange.Rows.count
    columnCount = Sheets("Sheet3").UsedRange.Columns.count
    ReDim Assignee(rowCount)
    ReDim tmpList(rowCount) 'helper variant to make it smoother for recall of lines
    For i = rowDataBegin To rowCount
        Assignee(i - rowDataBegin) = CStr(Sheets("Sheet3").Cells(i, 1).Value)
        tmpList(i - rowDataBegin) = rowCount
    Next i
    Set dict = CreateObject("Scripting.Dictionary")
    For i = LBound(Assignee) To UBound(Assignee)
       If dict.exists(Assignee(i)) Then
            dict.Item(Assignee(i)) = dict.Item(Assignee(i)) + 1
             Else
            dict.Add Assignee(i), 1
        End If
       Next i
    Sheets("Sheet3").Range("$A$1:$I$" + CStr(rowCount)).RemoveDuplicates Columns:=1, Header:=xlYes
    rowCount = 2
    Application.Workbooks(1).Worksheets("Sheet3").Activate
    '** Header values Change as needed                                                             
    Sheets("Sheet3").Cells(1, 5).Value = "Completed Global Questionnaire? (Yes or No)"
    Sheets("Sheet3").Cells(1, 6).Value = "Number of Countries"
    Sheets("Sheet3").Cells(1, 7).Value = "Name of Countries Submitted"
    For Each v In dict.keys
    If dict.Item(v) > 0 And v <> "" Then
    Sheets("Sheet3").Cells(rowCount, 6).Value = dict.Item(v)
    rowCount = rowCount + 1
    End If
    Next v
    Sheets("Sheet3").Columns("A:I").AutoFilter Field:=6, Criteria1:=">1", _
            Operator:=xlAnd
    '** BEGIN TESTING AREA
    '** Stage 2 Test Complete - able to retrieve a list of how many rows are in use
    '** Stage 3 test - retrieve countries
    Sheets("Sheet1").Activate
    count = 2
    For Each v In dict.keys
    countries = ""
    rowCount = 0
    If dict.Item(v) > 1 Then
        With ActiveSheet
           Set rnData = .UsedRange
            With rnData
                .AutoFilter Field:=1, Criteria1:=v
               .Select
                'xlCellTypeVisible = 12
                 For Each rngArea In .SpecialCells(xlCellTypeVisible).Areas
                 tmp = .SpecialCells(xlCellTypeVisible).Rows
                Next
                For Z = 2 To rowCount
                    If countries = "" Then
                        countries = .Range("I" & Z).Value
                    Else
                        countries = countries & ", " & .Range("I" & Z).Value
                    End If
                Next Z
            End With
        End With
         Sheets("Sheet3").Cells(count, 7).Value = countries
    End If
    count = count + 1
    Next v
    '**  Testing block              **
    Sheets("Sheet3").Columns("A:I").AutoFit
    MsgBox "End loop"
                                                

    The code below is only semi-tested but it should give you the idea of how to loop through the visible data of an AutoFiltered Range. You can't use code like "For r = 2 to Rows.Count" because the code stops after the first non contiguous row. However,
    you can use For Each loop to loop through the rows and get the row number from there.
    An explanation of the code to set rngVisible. (Note that a space and underscore at the end of a line is a line break in an otherwise single line of code.)
    With .AutoFilter.Range   This is the entire AutoFilter Range (Includes column headers, visible and non visible rows)
     .Offset(1, 0)     Moves down one row off the column headers but now includes an additional row at the bottom below the data. (Still includes visible and non visible rows)
     .Resize(.Rows.Count - 1, .Columns.Count)     Removes the additional row due to Offset (Still includes visible and non visible rows)
    .SpecialCells(xlCellTypeVisible)      Only include the visible rows.
        Sheets("Sheet1").Activate
        For Each v In dict.keys
            countries = ""
            If dict.Item(v) > 1 Then
                With ActiveSheet
                    Set rnData = .UsedRange
                    With rnData
                        .AutoFilter Field:=1, Criteria1:=v
                    End With
                    'Note that AutoFilter.Range is an inbuilt object variable _
                    for the entire range covered by the AutoFilter
                    With .AutoFilter.Range
                        'Following tests if any rows (other than column header) are visible _
                        in the AutoFilter.Range.  If > 1 then more than just column headers. _
                        Attempting to set the rngVisible will error if not at least one row _
                        of visible data.
                        If .Columns(1).SpecialCells(xlCellTypeVisible).Cells.Count > 1 Then
                            'Assign the visible data to a range variable
                            Set rngVisible = .Offset(1, 0) _
                                       .Resize(.Rows.Count - 1, .Columns.Count) _
                                       .SpecialCells(xlCellTypeVisible)
                        Else
                            MsgBox "No visible data. Procesing terminated."
                            'Left for you to handle what you want to do if the _
                             filter does not exist in the data and no visible rows present
                            Exit Sub
                        End If
                    End With
                    'Loop through the rows of rngVisible
                    'and get the row numbers
                    For Each rngRow In rngVisible.Rows
                        Z = rngRow.Row
                        If countries = "" Then
                           countries = .Range("I" & Z).Value
                        Else
                           countries = countries & ", " & .Range("I" & Z).Value
                        End If
                    Next rngRow
                End With
            End If
        Next v
    Regards, OssieMac

  • How do i update Apps after creating a new Apple ID?

    I created a new Apple ID to seperate my account from mmy Son's account.  We've had the same account going to two different phones since he was in Middle School - he is now in college and with iCloud I really don't want all his music and contacts etc.
    The problem is - even though I set my iPhone (3GS) to access my new account - it's not allowing me to update Apps that are currently on my phone purchased under my old account.  It asks me for the password to the old Apple ID.
    Is  there a way to update the Apps I already purchased though my new account?

    If you know the old password, it should allow you to update.
    However, if you want to redownload the app fresh, you will have to delete it from your phone first.  Also, delete it from your iTunes so it will not try to sync the old version back on.
    NOTE:  The deleting/redownload app worked for me when I switched AppleIDs, but I also wiped the phone and started with a fresh library in iTunes.  I did this because I wanted no trace of my old AppleID anywhere.  I was able to redownload apps with my new ID, and everything now is tied to my new one.

  • How to delete unwanted combinations after creating new records ?

    Hi All,
    I am generating some combinations using the 'characteristic relationship' setting in the query designer. If 10 records are created and the user wants to work only on 3 records, is there a way that the user can delete the unwanted records. I mean he shouldnt see these records again.
    If deletion is not possible then is there a way to hide these records ? Any logic as how to achieve this ?
    Zero suppression will not work in my case as there is a chance of assigning the key figure to zero and again reviving it back to some non zero value.
    Request your valuable inputs.

    Thank you for the reply.
    Yes thats how it works. But the user doesnt want to enter all the specific filter criteria , he wants to input the values only for some characteristics and leave the others as blank. In this case the system creates all the possible combinations for the characteristics that are left blank. So the no of unwanted records are increasing drastically.
    I had written a fox code to generate combinations based on the variable entry(from and to)  for the characteristic which determines the record uniquely. This way i am able to reduce the no of unwanted records.  But couldnt delete the records.
    Is there any way that i can change the value of a dummy characteristic in the  record so that data slice can be applied on such records by hitting a button and  the user willnt be able to change the values for these records.

  • How to get pass login after reinstalling snow leopard

    I tried unsuccessfully to upgrade to maverick and got an error message stating that the Macintosh HD disk is damaged and to erase the disk and try to install again.  I did erase the Macintosh HD disk, reinstalled snow leopard because I have a mid 2010-2011 iMac and reset my password.  I was successful  but a lot of the icons were missing and did a software update. I ran into problems when I downloaded some software updates and the computer re- booted and now I can't get pass the login screen.  Every time I put in my password, the computer accepts the password and I think it is going to bring up the desktop but it just go back to the login screen.  I really don't know how to solve this problem, so I'm hoping someone could tell me what to do.

    Hello, I try to avoid Safari myself, but are you really on 10.5.6 & not 10.5.8 yet?
    Does Software update show a newer Safari?

  • How to change appraiser / reviewer after creating the appraisal template

    Hi All,
    Once the Appraisal template created, if we have changes in appraiser / reviewer, how we can change the new names in the appraisal template in standard (other than T.Code: Phap_admin --> Change header data).
    For eg., we have created a document for PERNR 1 on Apr 1st for 01.04.2014 to 31.03.2015 with appraiser as Mr. XYZ, on 01.05.2014 Mr. XYZ left and Mr. PQR replaced that position. In this case, how we can replace appraiser name for PERNR 1 as Mr. PQR in the appraisal template.
    Please suggest.
    Regards,
    Venkat Nagam

    Koushik,
    Depending on the amount of customizations that you did, it may be easier to use the wizard to re-create the master-detail form & report.
    If you still want to give it a go:
    Assuming that you created the 2-page Master Detail report & form:
    On the first page, you will have to chage the SQL to reflect the new table name. Once you do that, you'll have to re-create the link on the EMPID column.
    On the second page, you'll need to do some more work. You'll have to change both Page Rendering Processes: Fetch Row from EMP and Get Next or Previous Primary Key. You'll then need to change the Page Processing Process: Process Row of EMP. Also, ensure that you have a proper Foreign Key relationship between EMP2 and DEPT (or your detail table).
    Thanks,
    - Scott -

  • How to change aspect ratio AFTER creating a project

    I created a project in FCPX and somehow it's got Black bars on the left and right (i think i created a 16:9 project and put 4:3 clips in). I can't enlarge the clips as they contain text that would be cropped out, so i need to turn my 16:9 project into a 4:3 project. Is this possible?
    Regards
    Mike

    Close your project if it's open by going back to the Project Library view (where you see all your projects). Select the project, open the inspector (command-4) if it isn't already open. At the bottom right of the inspector, click the wrench icon. Change your projects properties and click OK.

  • How to Change Delivery quantity after creating Transfer order

    Hi
    I created a transfer order for my delivery with LT03. There is already non-ordered quantity in my delivery.
    delivery quantity is 5 but transfer order's quantity is 4.
    i want to change my delivery quantity without confirming the transfer order.
    Is it possible
    is there any customization or function for that work ?
    in se37, i tried BAPI_OUTB_DELIVERY_CHANGE. it returned the error "there is an unconfirmed transfer order"
    Moved to SD froum from LE forum at the request of OP
    Edited by: Csaba Szommer on Apr 18, 2011 1:21 PM

    If you set "Copy WM quantity as delivery quantity into delivery" for your WH/wm-mvt combination in WM/Shipping interface, the delivery quantity will be always adjusted to the picking quantity ("1" in field V_T3333-WMMUE).
    The same can be achieved manually as it was told you by Andrzej.
    There's no separate function modul to do this.
    When system is processing FCODE "KOMU_T" (manual process) the delivery quantity will be changed in include MV50AF0F_FCODE_KOMU in internal structure "lips":
          IF xlips-pikmg > xlips-lfimg OR likpd-kzebu IS INITIAL.
            PERFORM check_and_set_pikmg_lfimg CHANGING lf_subrc.
            CHECK lf_subrc = 0.
          ENDIF.
    But this is one thing, there's some preparation before this step and and the change in "lips" will cause the change of "xlips" later on, etc.
    So, it is related to several programs (includes) and forms.
    Please contact your ABAPer if you are not familiar with technical things.
    Edited by: Csaba Szommer on Apr 18, 2011 10:55 PM

  • How to disable automatic login and to see other accounts?

    I bought MacBook Pro Retina with Mac OS X 10.8.2 in a shop, where there already was account "kiosk".
    I created new account, gave him Administrator priviliges.
    In the Preferences / Users & Groups I see kiosk account as "Managed", and my new account as "Admin".
    I set:
    System Preferences / Security & Privacy / General / Disable automatic login = Checked.
    System Preferences / Users & Groups / Login Options / Automatic login = Off.
    But still I have two issues:
    1) After start the laptop automatically logins into kiosk account, while I explicitly switched off this option
    2) Apart from kiosk account, the OS doesn't see any other accounts, for example my new account.
    For example, when I changed login shell for kiosk account into /usr/bin/false, I couldn't login at all. The OS said something like, there are no active accounts. So I had to set login shell back to /bin/bash using single-user mode.
    The questions are:
    How to disable automatic login into kiosk account?
    How to see a choice between kiosk account and my new account in the login dialog?
    How to delete kiosk account? Currently the delete option is disabled for kiosk in System Preferences / Users & Groups.
    So far after laptop start I automatically login into kiosk, then switch into my new account with entering a password, which is weird.
    Thanks in advance.

    It is your only option if you want to get rid of that other user account. It seems the system is Hard Set to boot to that account. How and why I have not Idea but the first thing you should of done was Restoring it to the Original OS, if it was not Mt Lion to begin with, in doing so getting rid of all other accounts and files from that other account.
    Time to Bit the Bullet and Erase the drive completely and reinstall the original shipping version of OS X on that system.
    Anton Mironenko wrote:
    Reinstalling the OS would be too extreme. I already have many programs installed, and I tuned a lot of params. Data migration is another pain.
    I hope, it is possible to solve this issue in another way.

  • Unable to login as administrator after creating new standard account

    Just got a nice new MBP form work today.
    When logged in as the admin I created a new standard account for my personal use. I then shut down the laptop.
    After booting up I am presented with a default icon, my standard use name, and a field to enter my password. I can login to this account fine. If I click on the arrow next to the username (this seems pretty poor UX - it annoyingly takes a while to appear, and how is a new user supposed to know what it is for? /vent), and then click on 'other' and enter my admin username and password, it is not accepted and the password field just shakes.
    Am I missing something obvious?
    Many thanks.

    @Frank Caggianoy
    Yep, the Display login window is set to List of users. The password that has been set up is the passwsord I've been using for several months at work, so that cannot be the issue.
    @nbar
    When I set up the standard user account, there was definately an administrator account in the user list. I also installed some work related applications which are not present when logged in to the standard account.
    I've got to say that these forums are very helpful - thanks for the suggestions. I'll speak to the person who set up everything tomorrow, and post back what the problem/solution was.
    Cheers.

  • How can I prevent oracle from locking accounts after failed logins?

    how can I prevent oracle from locking accounts after failed logins?
    Thanks

    svarma wrote:
    So what is the difference between the profile settings ...FAILED_LOGIN_ATTEMPTS and the parameter settings SEC_MAX_FAILED_LOGIN_ATTEMPTS?
    Prior to 11g we only used profiles to control failed_login_attempts.. Then why we need thsi new parameter now?http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/initparams221.htm#I1010274
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17222/changes.htm#UPGRD12504
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_6010.htm#SQLRF01310
    As documented ...
    FAILED_LOGIN_ATTEMPTS is a property of a profile, and will lock an account
    SEC_MAX_FAILED_LOGIN_ATTEMPTS is an initialization parameter and will drop a connection but says nothing about locking accounts.

Maybe you are looking for

  • Adobe Acrobat Reader's slow printing

    I had this same problem with Tiger when I first got a printer server for my printer (HP Laserjet 1200) but I fixed it by selecting another driver. Basically what happens is that takes like 5 minutes to print the first page, and after the first page i

  • Submitting a PDF via email through Acrobat

    What im looking to do is have a submit button, which i have created, and have that "submit button" either directly email the person it's supposed to go to or bring up a blank email with the persons email to whom it is supposed to go to already in the

  • Optimal XP Configuration for Workshop

    We've put Workshop 8.1 SP1 on WinXP Pro workstations (2.3GHZ, 1Gb RAM, 20Gb HD). We used them for our week of BEA Portal training. The performance was miserable - it took minutes for jsps to compile and open for debugging - and they locked up or cras

  • Posting of MIRO invoices

    Hi Experts Please assist, my requirement is as follows: I will be given an invoice that was previously parked/held because it did not have a goods receipt to it. After the goods receipt is done, the program should update the line items on the MIRO in

  • Problem in Automated Failover in JMS Clustering

    Hi,           I am facing a problem in JMS clustering, now let me explain the scenario.           I have 2 managed servers participating in the weblogic cluster, now since JMS is a singleton service what i did is i have created 2 JMS servers and targ