Results 1 to 2 of 2
  1. #1
    Newbie
    Join Date
    Dec 2017
    Posts
    1

    Default Captive portal, local user expiration date

    im using a custom captive portal custom_registration.zip, the user registers his account
    I would like to set the expiration date of the registration for 1 day for captive portal local users

    in the code below is done the registration of the user, how could I add an expiration date?

    if action == 'Register':
    if email and len(email.strip()) > 0 and pwd and len(pwd.strip()) > 0 and uname and len(uname.strip()) > 0:
    userToRegister={"email": "%s"%email, "firstName":"%s"%fn, "lastName":"%s"%ln, "password":"%s"%pwd, "username":"%s"%uname, "javaClass":"com.untangle.uvm.LocalDirectoryUser"}
    if not localDirectory.userExists(userToRegister):
    localDirectory.addUser(userToRegister)
    capture.userAuthenticate(address, uname, pwd)
    else:
    return index(req,rawpath,webpath,appid,host,uri,"User already exists !")
    else:
    return index(req,rawpath,webpath,appid,host,uri,"Username, password and email must be set !")

  2. #2
    Newbie
    Join Date
    Dec 2017
    Posts
    1

    Default

    I'm looking for exactly this feature as well.

    Is there any documentation on these?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2