Yii Framework Forum: Login by mobile number & OTA - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Login by mobile number & OTA

#1 User is offline   marvix 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 142
  • Joined: 02-August 13

Posted 15 March 2018 - 01:48 PM

Hi

I need to know if there is away to login via mobile number and OTA pin code, that for mobile app, so user doesn't need to re-enter his credentials again.

Thanks,
0

#2 User is offline   itma 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 134
  • Joined: 16-September 13

Posted 04 April 2018 - 03:07 AM

View Postmarvix, on 15 March 2018 - 01:48 PM, said:

Hi

I need to know if there is away to login via mobile number and OTA pin code, that for mobile app, so user doesn't need to re-enter his credentials again.

Thanks,


Of course, just you have to implement it. Yii2 does not stop you to go ahead with implementation.
A full stack developer for hire (andrew@itma.pl)
https://twitter.com/Andrew_Bernat
0

#3 User is offline   Stefano Mtangoo 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 379
  • Joined: 02-January 12
  • Location:Dar es Salaam, Tanzania

Posted 03 June 2018 - 12:46 PM

View Postmarvix, on 15 March 2018 - 01:48 PM, said:

so user doesn't need to re-enter his credentials again.


Sounds like it is recipe for Oauth2. There are many Oauth2 server libraries that are Yii2 specific
And God said, Let there be science...and it was so! Kwa kazi za Mifumo ya Computer tuone tukusaidie hapa!
0

#4 User is offline   marvix 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 142
  • Joined: 02-August 13

Posted 03 June 2018 - 01:25 PM

Solved it ... after the user posts his mobile, the system will verify & validate it, if all ok then it will send the OTP that valid for x time, and once the user posts the OTP the system will generate a new access_token to the app, and the app will store it. With each request will attach the access token, and it will be validated it.

I never used the Oauth2, II could not understand it :) ... I found writing my own code is easier ^^
0

#5 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 3,648
  • Joined: 16-February 11
  • Location:Japan

Posted 03 June 2018 - 05:37 PM

/* moved from "Tips" to "General Discussion" */
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users