Django-Registration & Django-Profile, using your own custom form

You’re halfway there – you’ve successfully built a custom form that replaces the default form. But you’re attempting to do your custom processing with a save() method on your model form. That was possible in older versions of django-registration, but I can see from the fact that you specified a backend in your URL conf … Read more

Rails 3 with Devise for Authentication – How do I manually create a user?

The skip_confirmation! method is available to any confirmable model. @user = User.new params[:user] @user.skip_confirmation! # Sets confirmed_at to Time.now, activating the account @user.save The user account will be activated though. If you don’t want that, continue reading. Devise uses conditional callbacks to generate the confirmation token and send the email. The callbacks will be called … Read more

PJSIP Custom Registration Header

Just quoting the OP as he found the solution, but forgot to add it as an answer: Edit: I found the solution thanks to a co-worker: struct pjsip_generic_string_hdr CustomHeader; pj_str_t name = pj_str(“MyHeader”); pj_str_t value = pj_str(“HeaderValue”); pjsip_generic_string_hdr_init2(&CustomHeader, &name, &value); pj_list_push_back(&cfg.reg_hdr_list, &CustomHeader); This seems to work as expected.

Devise: Disable password confirmation during sign-up

To disable password confirmation you can simply remove the password_confirmation field from the registration form. This disables the need to confirm the password entirely! Generate devise views if you haven’t: rails g devise:views Remove the password_confirmation section in app\views\devise\registrations\new.html.erb The reason why this works lies in lib/devise/models/validatable.rb in the Devise source: module Devise module Models … Read more

Base64: java.lang.IllegalArgumentException: Illegal character

Your encoded text is [B@6499375d. That is not Base64, something went wrong while encoding. That decoding code looks good. Use this code to convert the byte[] to a String before adding it to the URL: String encodedEmailString = new String(encodedEmail, “UTF-8”); // … String confirmLink = “Complete your registration by clicking on following” + “\n<a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)