Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nguyễn Khắc Rồng
replace verify email address by sms
February 28, 2013 5:53 PM
Answer

Nguyễn Khắc Rồng

Rank: New Member

Posts: 17

Join Date: December 12, 2012

Recent Posts

hi, i want to verify user via sms, for example: "active user_id" send 8xxx I try to set EMAILADDRESSVERIFIED in USER_ table equal 1 when receive active sms but not work, i check TICKET table when create new user, this table contain ticket key when active via email, but ticket key's length is too long, i want to send to user(respone to active sms) a short code, so i must create new table to map new code to ticket key. In verify_email_address.jsp, i map new active code with ticket key before send to server but not work. So anyone can show me a simple way to solve that, sorry for my english emoticon
Nguyễn Khắc Rồng
RE: replace verify email address by sms
April 12, 2013 8:40 PM
Answer

Nguyễn Khắc Rồng

Rank: New Member

Posts: 17

Join Date: December 12, 2012

Recent Posts

I have resolve my issue, thank for all emoticon
venka reddy
RE: replace verify email address by sms
April 14, 2013 10:14 PM
Answer

venka reddy

Rank: Regular Member

Posts: 231

Join Date: March 23, 2011

Recent Posts

Hi,

How you have resolved this task? Can you explain with steps?
Nguyễn Khắc Rồng
RE: replace verify email address by sms
April 14, 2013 11:54 PM
Answer

Nguyễn Khắc Rồng

Rank: New Member

Posts: 17

Join Date: December 12, 2012

Recent Posts

(The first, sorry for my English)
- Step 1: I created a table ACTIVE_USER(user_id,status) (user_id: foreign key, reference to USER_ table; status: if activated status = 1 else status = 0)
- Step 2: By default, when new user complete registration form will receive an email that contain active key, i configure not send that key, in verify_email_address.jsp i set type="hidden" for input(which used to input active key)
+ If user not active via sms, status field in ACTIVE_USER table will be not updated (status = 0);
+ If user is actived via sms, status field in ACTIVE_USER table will be updated (status = 1), after that i get the active key from TICKET_ table to ticket key variable(ticketKey = ticketTMP.getKEY_();)

 1if (active.status == 1) {
 2            TK ticketTMP = TKLocalServiceUtil.getTK(themeDisplay
 3                    .getUserId());
 4            ticketKey = ticketTMP.getKEY_();
 5        } else {
 6            ticketKey = "";
 7        }
 8
 9<aui:input class="lfr-input-text-container" label="email-verification-code" name="ticketKey" size="36" type="hidden" value="<%= ticketKey %>" />
10<aui:button-row>
11        <aui:button type="submit" value="<%=strOK%>" />
12    </aui:button-row>