Sponsored Content
Full Discussion: Registration proposal
Contact Us Forum Support Area for Unregistered Users & Account Problems Registration proposal Post 302854473 by spider_fingers on Tuesday 17th of September 2013 02:02:45 PM
Old 09-17-2013
Registration proposal

Hello. I've been reading the feed via twitter for a long time, but though i'm willing to help, i can't post and register (russia's banned). IP is dynamic, it's (<ip address>) for now.
DevOps, RH, python and unix shell scripting.

Last edited by Scott; 09-17-2013 at 03:04 PM.. Reason: Removed IP
spider_fingers
 

4 More Discussions You Might Find Interesting

1. Programming

Master's degree proposal, Router software

Hello everyone, After 8 years of being out of school I am trying to start my Masters degree. This specific type of degree is being done only by research (research mode vs. coursework mode). I need to prepare a research proposal and send it to the school. I will need a professor to accept me as a... (2 Replies)
Discussion started by: wmac
2 Replies

2. UNIX for Dummies Questions & Answers

research proposal for PG

hi friends i have just completed my graduation and applied for Post graduation i have to submit a research proposal of OS in the interview i m a beginner & only read galvin & silbershcatz book on operating systems can anyone help me in that ... thanks in advance (3 Replies)
Discussion started by: iet.manish
3 Replies

3. What is on Your Mind?

Proposal to Eliminate Thread Icons Column

Without objection, open to comments, I would like to eliminate this column in various views that show topics and threads (forum view, search results, etc). https://www.unix.com/members/1-albums220-picture887.png https://www.unix.com/members/1-albums220-picture888.png Comments? (10 Replies)
Discussion started by: Neo
10 Replies

4. What is on Your Mind?

New Member Profile Pages (Proposal)

Hey, I am thinking to get rid of the old and clunky member profile pages and replace with a prototype from Brad at Traversy Media. Here is the prototype: Welcome To My Portfolio Basically, I will take the links in the user profile page and put them into the new format when I have time.... (3 Replies)
Discussion started by: Neo
3 Replies
AnyEvent::XMPP::Ext::Registration(3pm)			User Contributed Perl Documentation		    AnyEvent::XMPP::Ext::Registration(3pm)

NAME
AnyEvent::XMPP::Ext::Registration - Handles all tasks of in band registration SYNOPSIS
my $con = AnyEvent::XMPP::Connection->new (...); $con->reg_cb (stream_pre_authentication => sub { my ($con) = @_; my $reg = AnyEvent::XMPP::Ext::Registration->new (connection => $con); $reg->send_registration_request (sub { my ($reg, $form, $error) = @_; if ($error) { # error handling } else { my $af = $form->try_fillout_registration ("tester", "secret"); $reg->submit_form ($af, sub { my ($reg, $ok, $error, $form) = @_; if ($ok) { # registered successfully! $con->authenticate } else { # error if ($form) { # we got an alternative form! # fill it out and submit it with C<submit_form> again } } }); } }); 0 }); DESCRIPTION
This module handles all tasks of in band registration that are possible and specified by XEP-0077. It's mainly a helper class that eases some tasks such as submitting and retrieving a form. METHODS
new (%args) This is the constructor for a registration object. connection This must be a AnyEvent::XMPP::Connection (or some other subclass of that) object. This argument is required. send_registration_request ($cb) This method sends a register form request. $cb will be called when either the form arrived or an error occured. The first argument of $cb is always $self. If the form arrived the second argument of $cb will be a AnyEvent::XMPP::Ext::RegisterForm object. If an error occured the second argument will be undef and the third argument will be a AnyEvent::XMPP::Error::Register object. For hints how AnyEvent::XMPP::Ext::RegisterForm should be filled out look in XEP-0077. Either you have legacy form fields, out of band data or a data form. See also try_fillout_registration in AnyEvent::XMPP::Ext::RegisterForm. send_unregistration_request ($cb) This method sends an unregistration request. For description of the semantics of the callback in $cb plase look in the description of the "submit_form" method below. send_password_change_request ($username, $password, $cb) This method sends a password change request for the user $username with the new password $password. For description of the semantics of the callback in $cb plase look in the description of the "submit_form" method below. submit_form ($form, $cb) This method submits the $form which should be of type AnyEvent::XMPP::Ext::RegisterForm and should be an answer form. $con is the connection on which to send this form. $cb is the callback that will be called once the form has been submitted and either an error or success was received. The first argument to the callback will be the AnyEvent::XMPP::Ext::Registration object, the second will be a boolean value that is true when the form was successfully transmitted and everything is fine. If the second argument is false then the third argument is a AnyEvent::XMPP::Error::Register object. If the error contained a data form which is required to successfully make the request then the fourth argument will be a AnyEvent::XMPP::Ext::RegisterForm which you should fill out and send again with "submit_form". For the semantics of such an error form see also XEP-0077. AUTHOR
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>" COPYRIGHT &; LICENSE Copyright 2007, 2008 Robin Redeker, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-23 AnyEvent::XMPP::Ext::Registration(3pm)
All times are GMT -4. The time now is 07:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy